[wp-trac] [WordPress Trac] #28634: jpeg_quality hook fake compress images
WordPress Trac
noreply at wordpress.org
Wed Jun 25 17:22:09 UTC 2014
#28634: jpeg_quality hook fake compress images
--------------------------+-----------------------------
Reporter: alexufo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
add
{{{
add_image_size( 'thumb100x100', 100, 100, true );
add_filter( 'jpeg_quality', create_function( '', 'return 30;' ));
}}}
to function.php
upload picture to library.
look at upload folder.
https://dl.dropboxusercontent.com/u/3013858/P1030174-100x100.jpg
How can will be 30kb file size with visible jpg artifacts?
I look like save twice. With 30% compression and with 100% quality
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28634>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list