Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40370, comment 6


Ignore:
Timestamp:
10/13/2018 01:21:21 AM (6 years ago)
Author:
peterwilsoncc
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40370, comment 6

    initial v1  
    1616  0 => 0
    1717  1 => 0
    18   3 => // Crop start X axis
    19   4 => // Crop start Y axis
    20   5 => // New width
    21   6 => // New height
    22   7 => // Crop width on source image
    23   8 => // Crop height on source image
     18  2 => // Crop start X axis
     19  3 => // Crop start Y axis
     20  4 => // New width
     21  5 => // New height
     22  6 => // Crop width on source image
     23  7 => // Crop height on source image
    2424];
    2525}}}
    2626
    27 The crop hash could be generated from `$source_w,$source_h,$dims[3],$dims[4],$dims[7],$dims[8]`. This will ensure images from the same source with the same aspect ratio and crop will end up with the same hash.
     27The crop hash could be generated from `$source_w,$source_h,$dims[2],$dims[3],$dims[6],$dims[7]`. This will ensure images from the same source with the same aspect ratio and crop will end up with the same hash.
    2828
    2929If the final two values are the same as the source image then no hash is required.