WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #48842, comment 4


Ignore:
Timestamp:
12/02/2019 01:53:47 AM (12 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48842, comment 4

    initial v1  
    66"To be more efficient..." sounds like this is done in order to help efficiency, i.e. create a much smaller sub-size faster and using less server resources. Not sure if the idea was to upscale the original in order to produce "smoother" sub-size. The existing code suggests that too. Also think `Imagick::thumbnailImage()` does something similar internally.
    77
    8 The `Imagick::sampleImage()` seems like a "fast" scaling method:
     8The `Imagick::sampleImage()` seems like a "fast" scaling method: https://imagemagick.org/api/resize.php#SampleImage.
    99
    1010 SampleImage() scales an image to the desired dimensions with pixel sampling. Unlike other scaling methods, this method does not introduce any additional color into the scaled image.