1

Topic: thumbnails not refreshing: use_exif=false ignored?

I'm using the .Net version of MCImageManager.  I have found that when some files are edited, the thumbnails don't get updated to reflect the edit.  It seems to be confined mostly to jpeg images for me (maybe a result of the software that originally created them?).  I have "auto-generate" set to true and "use_exif" set to false, though it doesn't seem to matter what I do to those settings. It also doesn't matter if the edited file is saved under a different name.  The new file retains the thumbnail of the original image.  I also notice that if I view the files in windows explorer, the thumbnails there are also not updated.

It seems to be pulling the exif thumbnail despite use_exif being set to false.  I used Gimp to remove exif info from one of the jpegs and that seems to allow the thumbnails to update reliably.

In case it's related, I would mention that I ran into other problems because my files are in a virtual directory:
http://www.tinymce.com/forum/viewtopic.php?id=27153

Any help appreciated.
- David

Last edited by dhammond (2011-11-21 23:36:57)

2

Re: thumbnails not refreshing: use_exif=false ignored?

Hmm, very strange. It should drop the thumbnail when you alter it.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: thumbnails not refreshing: use_exif=false ignored?

Do you mean that it should drop the thumbnail in the exif when it's altered?  That would solve the problem.  It's definitely not getting stripped out for me, though.  After editing it in MCImageManager I opened in Picasa and was able to see the wrong thumbnail in the exif.  I edited in Picasa and saw the thumbnail updated.  Perhaps it's the specific format of the exif in the images I'm using?  The image are from a standard point-and-shoot Sony camera.

It shouldn't be using exif at all, though, since I have use_exif=false.

4

Re: thumbnails not refreshing: use_exif=false ignored?

Yes, it should drop the thumbnail if the modification date of the file isn't equal to the thumbnail modification date. But if you set use_exif=false it shouldn't use the thumbnail from the exif data.

Best regards,
Spocke - Main developer of TinyMCE

5

Re: thumbnails not refreshing: use_exif=false ignored?

It finally occurred to me that this may depend on the type of edit done.  I have been using "flip" in my testing because it is the quickest to do.  It appears that things work properly if you do a crop or resize, but not if you do a flip or rotate.  This doesn't explain why it's using the exif thumbnail at all.  I tried a search in Visual Studio for "use_exif", but the only place it shows up is in Web.config.  Same with "auto_generate" actually.  That doesn't make sense, since I can see all the code for ImageUtils.MakeThumbnail and such.  Is it possible that was never implemented for the .Net version?

6

Re: thumbnails not refreshing: use_exif=false ignored?

Yes, the exif stuff if PHP only. However the generate thumbnail logic uses the build in. NET function for it so I think it uses the thumbnail logic in windows. That might be broken some how. Or that it's a cache issue in the browser.

Best regards,
Spocke - Main developer of TinyMCE

7

Re: thumbnails not refreshing: use_exif=false ignored?

Definitely not a browser cache issue.  I can open the image in Picasa and see the out-of-date thumbnail in the exif information.  It displays with the incorrect thumbnail in windows explorer too.  The problem is that rotate and flip leave the old thumbnail intact.

8

Re: thumbnails not refreshing: use_exif=false ignored?

Hmm, maybe it's because the file size is the exact same before/after flip/rotate. We use the filesize as a unique id for the thumbs?

Best regards,
Spocke - Main developer of TinyMCE