[wp-trac] [WordPress Trac] #48522: Attachment size not generated when large images uploaded

WordPress Trac noreply at wordpress.org
Tue Dec 3 22:42:23 UTC 2019


#48522: Attachment size not generated when large images uploaded
-------------------------------------------------+-------------------------
 Reporter:  vanyukov                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.3.1
Component:  Media                                |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion has-patch needs-testing  |     Focuses:
  needs-unit-tests                               |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:26 vanyukov]:

 Right. This code seems to come (more or less) from the ImageMagick
 `-thumbnail` option, see:
 https://github.com/ImageMagick/ImageMagick/blob/master/MagickCore/resize.c#L4491.
 It also has a hard-coded `$sample_factor = 5` and does upscaling with
 `SampleImage` in some cases.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48522#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list