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

WordPress Trac noreply at wordpress.org
Thu Nov 7 03:36:07 UTC 2019


#48522: Attachment size not generated when large images uploaded
--------------------------+------------------------------
 Reporter:  vanyukov      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Upload        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by vanyukov):

 Just some more info. I've traced the issue to the {{{thumbnail_image()}}}
 failing inside the {{{wp_create_image_subsizes()}}} function with a "cache
 resources exhausted" error during the generation of the scaled image.
 Later on when WordPress tries to {{{_wp_make_subsizes()}}}, the image
 editor is still returned with an error. A possible solution would be to
 generate attachments from smallest to largest. That way ImageMagick is
 able to work... it's magic... and users will, at least, get some
 attachments generated. Now in 5.3, there is absolutely nothing being
 generated, compared to 5.2.4

 Another possible solution would be to resample images to a smaller
 destination size? Or even make this dynamic? First try to resample to the
 default 5x size, if that fails, try the 4x and so on... That would
 probably require revisiting the DSSIM tests and making sure the resample
 does not change the image quality. But, again, from the users perspective
 - any image is better than nothing.

 Will happily submit a patch to any of the above changes

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


More information about the wp-trac mailing list