WordPress.org

Ready to get started?Download WordPress

Forums

Stripping Image Metadata (13 posts)

  1. lnikj
    Member
    Posted 6 months ago #

    Is it not time that WordPress switched from GD to ImageMagick and preserved ICC profiles, EXIF and IPTC metadata in resized images by default?

    I believe it is actually illegal in some jurisdictions to knowingly strip copyright information from images.

  2. Chris Hardie
    Member
    Posted 6 months ago #

    Hi. There are plugins available like this one:

    http://wordpress.org/plugins/imagemagick-engine/

    (although it's a bit old) that will replace the default GD image processing engine with ImageMagick, so you have that option if you want it.

    The question of whether and how to alter or remove metadata from images is probably a longer discussion, and one that others have had (e.g. this thread) Some users may actually want metadata to be removed/altered from an image before it is publicly displayed on the web, while others like yourself may be concerned about removing data that is important/helpful. You can use some different plugins and/or customize your site based on your own image processing needs.

    I hope that helps.

  3. lnikj
    Member
    Posted 6 months ago #

    Hi Chris

    Thanks for your reply.

    I take your point. I wonder if the option should be there on the media page to choose GD or ImageMagick, rather than relying on a plugin (which I use but its age concerns me).

    It is not merely the copyright issue, which as I said is not legally insignificant, but the profile stripping. Anybody with a wide gamut display will know that once WordPress/GD has had a go at your image then you are likely to be looking at a supersaturated mess.

    I think this should be an option out of the box and not something that relies on a plugin.

    Cheers.

  4. esmi
    Forum Moderator
    Posted 6 months ago #

    I wonder if the option should be there on the media page to choose GD or ImageMagick

    Do you think that WordPress' large non-technical user base would have any idea what to do with such options?

  5. lnikj
    Member
    Posted 6 months ago #

    How about:

    A. Keep copyright information and other metadata in images (slightly larger file sizes)

    OR

    B. Remove copyright information and other metadata in images (slightly smaller file sizes)

  6. esmi
    Forum Moderator
    Posted 6 months ago #

    I'd still argue that it's one more layer of complexity that non-technical users would prefer to avoid. Given that the decision in WordPress Ideas was that that this was firmly within plugin territory. it would seem that I'm not the only one.

  7. lnikj
    Member
    Posted 6 months ago #

    OK.

    Then I think I would have to argue that the present default behaviour is the wrong behaviour :)

  8. lnikj
    Member
    Posted 6 months ago #

    I realise that I haven't generated much enthusiasm with this request but before this thread disappears off the front page I wanted to make one last attempt to state my case.

    In order to articulate it better I have written a short article: http://imagesites.info/wordpress-copyright-stripping/

    Just one other thing. @esmi - when you referred to the decision in WordPress Ideas, was it this one (mentioned by Chris Hardie above): http://wordpress.org/ideas/topic/remove-metadata-and-exif-from-image-attachments

    If it was then what was decided there was broadly in agreement with what I am suggesting.

    That decision was that metadata should be retained, not stripped. That was for uploaded images only, I am making the case for resized images too.

    Cheers.

  9. I wonder if the option should be there on the media page to choose GD or ImageMagick, rather than relying on a plugin (which I use but its age concerns me).

    ImageMagick is included in core WP and is, in fact, the default for WP. If you have it, WP uses it. if you don't, it falls back to GD. If you have neither, we shoot Gonzo out of a cannon... (actually I have no idea what happens after that, probably something smart).

    So... I have no idea why you'd not be seeing that as a default unless your server has a setup problem with Imagick (the PECL library that lets PHP talk to ImageMagic).

    All exif headers are retained for me.

  10. lnikj
    Member
    Posted 6 months ago #

    Hi Mika

    Really? Apart from not seeing the metadata in the resized images how would one tell?
    When was this announced?

    My host is Hostgator whom I would hope would get this right.

    My phpinfo shows me Imagick and magickwand are installed, but I see nothing about PECL.

    Any further info you can give me would be much appreciated.

    Many thanks.

  11. esmi
    Forum Moderator
    Posted 6 months ago #

    WordPress 3.5 as far as I recall.

  12. gubavision
    Member
    Posted 3 months ago #

    I would be interested in why. It seems to me you would have to write code to actually strip away the data so there was a choice to do so. The whole its smaller file size doesn't really float.

  13. esmi
    Forum Moderator
    Posted 3 months ago #

    This topic is referencing an older version of WordPress.

Reply

You must log in to post.

About this Topic