[wp-trac] [WordPress Trac] #37408: Create optimized Image even if image size equals original image

WordPress Trac noreply at wordpress.org
Tue Jul 19 08:21:26 UTC 2016


#37408: Create optimized Image even if image size equals original image
-----------------------------+-----------------------------
 Reporter:  HKandulla        |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upload           |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hi,

 at the moment WP creates optimized and scaled images for all sizes -
 supplied by add_image_size() - that are smaller than the original image.
 I think it would be much better if WP creates images for all sizes that
 are smaller or equal the original system.
 Example:
 We buy/upload images in 620x340px and we display the image in 620x340px,
 so we added:
 {{{#!php
 <?php
 add_image_size('620x340', 620, 340, true)
 }}}

 At the moment WP uses the original image and there is no clean way of
 displaying the optinzed version of this image.

 I would be happy to create a PR for this change, if I knew it would make
 into core.

 Please let me know what you think.#

 Thanks, Hannes

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


More information about the wp-trac mailing list