What is likely happening is that the metadata is stripped by the resizing process. Imsanity itself doesn’t technically do the resizing, it uses the core WordPress functions for that. The core functions, in turn, use one of the PHP libraries for image resizing: GD or Imagick (ImageMagick).
The GD library always strips metadata, and has no ability to preserve it, if your webhost has the imagick extension for PHP available, then enabling that could very well solve the problem.
Please note that Imsanity is not a “proper” image optimizer like Smush, it essentially does just what Smush’s Image resizing option will do, but faster, because it does it locally on your server.
To that end, if your webhost doesn’t have Imagick available, I recommend you try out the EWWW Image Optimizer. If your webhost supports the free mode, EWWW IO will do the same resizing as Imsanity + the compression that Smush does, all locally on your server (so it’s fast like Imsanity too). AND, it will preserve the metadata, even if you’re stuck with the GD library on your website.
I installed “EWWW Image Optimizer” sadly it has exactly the same problem.
I see this plugin has more options, but no matter if I check or uncheck option:
“Remove Metadata (This will remove ALL metadata: EXIF, comments, color profiles, and anything else that is not pixel data.)”
It still deletes all metadata of image including description and title and changes title to image name. so instead of copyright text or website inside image title, I have “013_DSC07947” image title which is shown to all visitors of the page..
Wordpress is latest version: 4.9.8
As you guessed, you definitely have to uncheck the Remove Metadata option, but I’m surprised it still doesn’t work for you.
If I’m understanding right, you’ve embedded the Title in the image metadata, which would normally come across into the WordPress “attachment title” when you upload (rather than the rather ugly filename of the image), but when using Imsanity or EWWW IO’s resizing options, it uses the filename as the image title, right?
EWWW IO is supposed to copy back the metadata when the Remove Metadata box is unchecked, so that might be some sort of bug.
Can you give me a link to one of the original images you uploaded, so I can check it out?
currently migrating servers so cant provide link.
But problem is quite simple. if I turn off plugin and upload image – everything is ok. image title and description goes from image properties correctly. but if I turn on this plugin, no matter if i check, or uncheck option to remove metadata – it still removes all metadata on image upload and replaces image title (which is inside image file properties) with image file name.
When you’re done, send me a link, even though the issue may appear “simple”, it’s quite impossible for me to replicate without an example image. While I likely have some images with similar metadata, I want to be sure I’m replicating exactly what you’re doing.
here made test page in test still not live page: http://dovydasgaidamavicius.lt/test
on first images you can see the problem for title which also appears for viewer.
6th, 7th and 8th image is resized using “smush” plugin and real title of image still visible. also if I go inside WP admin, on all images imported with your plugin – description is gone and title is changed to image filename.
All of those images have the meta stripped, can you please upload one without any optimization plugins active, and send a link to the original image itself?
When you had EWWW IO active, did you make sure to deactivate Imsanity first? When I upload that same image with just EWWW IO active, and Remove Metadata unchecked, I get your copyright notice in the Title & Caption fields for the upload.
I double checked now and here what I have:
enabled plugins:
EWWW Image Optimizer
The7 Elements
The7 Go Pricing – WordPress Responsive Pricing Tables
The7 Ultimate Addons for WPBakery Page Builder
The7 WPBakery Page Builder
Made sure that setting “Remove metadata” – unchecked
uploaded same image again. here it is:
http://www.dovydasgaidamavicius.lt/wp-content/uploads/2018/11/001_0-3.jpg
If I download this image back to computer and inspect “properties” I do see that all metadata is still there, BUT wordpress shows otherwise. so seems that this plugin wipes it from wordpress side only.
all this strange issue you can see here, uploaded screenshot of both images inside wordpress and downloaded back to PC settings:
http://prntscr.com/lnbb6y
Please enable the debugging option, and send the Debug information shown below the settings via https://ewww.io/contact-us/
There’s something else going on here that I can’t quite pin down, because EWWW IO should never be altering the Title & Caption fields, ever.
sent debug log, will wait for info in email. thanks