TL;DR I have weird stuff going on with images.
I’ve taken over a site for a client and am adding a thumbnail image field to a channel. The channel already had an article image field of type File (as far as I can tell no third party add-on is in use).
The client had previously been sizing all of their images at thumbnail size. Now that I’ve added the thumbnail field, instead of uploading new images, I’m just pointing the thumbnail field at the already uploaded image. Later I will add new full size images to the old article image fields. For now though, I have two file fields pointing at the same image on the server. It works sometimes:
http://www.webpagescreenshot.info/img/687212-721201283905PM
... after selecting the image, the publish page shows both fields with the same image. Perfect!
Other times unfortunately not so much. Before and after below:
0. http://www.webpagescreenshot.info/img/963212-721201284147PM
...this is a working entry that is unedited from the state that the site was in before I took over. For some reason the preview on the publish page doesn’t show a preview of the picture but I don’t really care about that, since it displays properly on the home page. BUT now look what happens when I select the same image in the “thumbnail” field:
1. http://www.webpagescreenshot.info/img/479931-721201284303PM
The “cocoon_thumb” picture is not visible in the modal dialog, but again I don’t care because at least I can hover over to identify the full title. So I select the image.
2. http://www.webpagescreenshot.info/img/993701-721201284404PM
...now on the edit page, I don’t have a preview of the picture AND I don’t have the title - it just says “undefined”. Fearlessly I press on:
3. http://www.webpagescreenshot.info/img/40799-721201284519PM
... after hitting submit, the summary of the entry shows just one URL, i.e. the 2nd reference to the image has not been saved (were it save correctly there would be two URLs). And the thumbnail does not show on the home page.
I’m not sure what the pattern is here, as both the working example and the not working are jpegs. I do wonder if maybe the ones that weren’t working were those that the client had resized after upload. Most of my images on the site are jpegs, and mostly they follow the “not working” pattern.
Any clues as to what could be going on?