Photon serving up wrong image size
-
Hi Guys,
I have recently on the last two projects I have been working on run into an issue with Photon. I can’t seem to find an answer anywhere but I will explain.
THE PROBLEM
When I add an image into a Page or Post through the usual WordPress editor and set the image to be “MEDIUM” or “THUMBNAIL” etc once I save the post or page the image stays as the full-size image I uploaded to the Media Library.
It also adds in height and width inline in the html.
I added some code to my themes functions file to remove height and width, but with Photon activated it doesn’t remove the height or width and still serves the largest image.
Featured images I don’t have a problem with, they behave nicely as I have a custom image size for those, it is just the images I want to add to posts and pages which seem to just totally ignore me and do whatever the f*&k they want.
Do I need to add something into my functions file to tell Photon to play ball?
Anybody else suffered this fate and does anybody have a fix or can enlighten me as to what I am doing wrong. I would like to use the Photon service but at the moment it is causing me headaches.
Cheers
Dan
- The topic ‘Photon serving up wrong image size’ is closed to new replies.