Make WordPress Core


Ignore:
Timestamp:
11/30/2014 07:53:18 PM (12 years ago)
Author:
wonderboymusic
Message:

Use round() instead of floor() when resizing image dimensions.

Updates unit tests.

Props SergeyBiryukov, kitchin.
Fixes #18532.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/editor_imagick.php

    r30549 r30660  
    283283                        // #0
    284284                        array(
    285                                 'file'      => 'waffles-10x6.jpg',
     285                                'file'      => 'waffles-10x7.jpg',
    286286                                'width'     => 10,
    287                                 'height'    => 6,
     287                                'height'    => 7,
    288288                                'mime-type' => 'image/jpeg',
    289289                        ),
     
    323323                        // #5
    324324                        array(
    325                                 'file'      => 'waffles-55x36.jpg',
     325                                'file'      => 'waffles-55x37.jpg',
    326326                                'width'     => 55,
    327                                 'height'    => 36,
     327                                'height'    => 37,
    328328                                'mime-type' => 'image/jpeg',
    329329                        ),
     
    331331                        // #6
    332332                        array(
    333                                 'file'      => 'waffles-82x55.jpg',
    334                                 'width'     => 82,
     333                                'file'      => 'waffles-83x55.jpg',
     334                                'width'     => 83,
    335335                                'height'    => 55,
    336336                                'mime-type' => 'image/jpeg',
Note: See TracChangeset for help on using the changeset viewer.