[wp-trac] [WordPress Trac] #28634: Upload images. does not clear Thumbnails metadata (+30kb from camera for each thumbnails)
WordPress Trac
noreply at wordpress.org
Thu Jul 3 11:00:46 UTC 2014
#28634: Upload images. does not clear Thumbnails metadata (+30kb from camera for
each thumbnails)
--------------------------+-----------------------------
Reporter: alexufo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Comment (by juliobox):
@alex: You can not strip exif by default since now. Also, my filter is
only in the imagick class, so if not installed the filter won't be
triggered ;)
Imagine all photographers, already using exif data, maybe from thumbs, you
don't know.
Then, after the patch, all is gone!? They have to apply a filter to
retreive exif like before?
Not logical! Even if it's logic to strip it for thumbs, you can not do it
by default from now, too late.
@marko: new patch added, tested like that, works:
{{{
add_filter( 'keep_image_exif', 'exif_if_size', 10, 2 );
function exif_if_size( $value, $size_data ) {
return $size_data['height'] >= 500 && $size_data['width'] >= 500;
}
}}}
If any of the sizes are < 500 px, the exif data will be stripped.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28634#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list