View Single Post
Old February 28th, 2018, 02:40 PM   #135
effCup
Vintage Idiot
 
effCup's Avatar
 
Join Date: Feb 2012
Location: History
Posts: 22,131
Thanks: 226,706
Thanked 356,700 Times in 21,625 Posts
effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+
Default

Something I've noticed a few times now with pimp&host: sometimes the uploaded original images do not download. Instead one gets the "this image has been removed" small default image. One cause for that seems to be where the original image is large, so the default link is a reduced-size (medium) image, but there's also been a format transition in that process. That is, the original image might, for example, be not a .jpg but instead a .png, but the default-linked image seems (now?) to always be a .jpg That causes a problem for the IHG code we're using because the image filetype is assumed to be the same as the one used within the default link.

Examples here, here.

Here's the default (med.-size) image, or in other words this image. But play swap-a-roonies with the trailing underscore-L and you get this, suggesting that the original image has been removed. But in reality it hasn't. Here it is as a different file format: a png.

I don't currently see any way of dealing with that. /headscratch/ I don't see anything in the default p&h link indicating the different file type.

It would be much simpler if we could instead somehow simply use the url for the full-size image, here, as that page does include the correct (png) image filetype.

I don't know how to intercept the "default" (medium-size) link & exchange the full-size one for it, within the flow of steps IHG performs. Removing the underscore-L from the url was just a (grubby) workaround.
effCup is offline   Reply With Quote
The Following 11 Users Say Thank You to effCup For This Useful Post: