[wp-trac] [WordPress Trac] #42953: Created images have a larger filesize than the original

WordPress Trac noreply at wordpress.org
Thu Dec 21 12:34:44 UTC 2017


#42953: Created images have a larger filesize than the original
--------------------------+-----------------------------
 Reporter:  aristath      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Images uploaded in the media library get resized to the defined sizes.
 However, if the image has been optimized beforehand the result can be that
 the generated images have a filesize larger than the originally uploaded
 image.

 It can happen due to a very high `jpeg_quality` value for example..

 This should not happen under any circumstances. Uploading optimized images
 is something a lot of people do for SEO purposes, and larger generated
 images affect that negatively.

 Sometimes even if the image-size is smaller, the generated file's filesize
 is bigger.

 One solution would be to save the image in a temp location and have its
 filesize checked against the original image. If the image is smaller than
 the original one then move to its final location. If not, then some other
 solution has to be found.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42953>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list