ContentBlocks Gallery caching thumbnails somewhere

In MODx 2.8.8, I have a ContentBlocks gallery and accidentally uploaded CMYK images which created off-color thumbnails. So I deleted the source images and my phpThumb cached images.

Inside the manager ContentBlocks shows a missing image, but if I refresh the public facing page, the off-color thumbnail still exists and a new thumbnail is generated and dropped into my phpThumb cache folder.

I did try deleting the images from the gallery, reuploading the fixed images, and readding them to the gallery. That didn’t help. It still creates the off-color image in the front facing page. If I create a duplicate image with a different file name it builds a proper colored thumbnail.

How is it regenerating the off-color thumbnail when the source is missing?

Or if this is something going on with phpThumbof, where might I look to find the problem?

I discovered something else interesting. If I disable phpThumb Resizer in MODx settings it will generate a new thumbnail with the proper color. The source file is still removed, so I have no idea how it is creating new thumbnails. If I turn resizer back on it regenerates or repopulates the off-color thumbnail again into the phpThumb cache folder.

Crazy!

I did an FTP search of the entire server and found another copy of the image stored in:

assets/components/phpthumbof/cache/remote-images/MEDIASOURCE/.../ENDFOLDER/fullsizeimage.jpg

I don’t know if this is a result of adding media source images to a ContentBlocks Gallery, or some kind of standard MODx media source feature? It seems like a waste of space to cache the full image which never gets seen by the public.

That’s part of pthumb, it seems to think the image is stored remotely so it downloads a local copy for it.

Uploading under a new name should help and also make sure there’s nothing stuck in a browser cache.