Photon breaking some images
-
Looks like some of my images become broken after Photon was activated.
As an example: http://www.automoblog.net/2012/10/23/2013-lexus-gs350-review/
The first and fourth images in the article show as broken.
Let’s use the first image as the example. The original image being called is http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623×389.jpeg – that works fine. When I deactivate Photon, it also displays fine. But when Photon is activated, it shows that it’s broken. When I try to view image (http://i2.wp.com/www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view.jpeg?resize=623%2C389) it says “We cannot complete this request, remote data was invalid”
-
Photon seems to be referring to images that do not exist, or were deleted:
- http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view.jpeg
- http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-Interior-3.jpeg
Could you try to delete the 2 images in the Edit Post screen, and add them again?
In my case, the Photon is breaking the smiles converted by WordPress.
This is happening because Settings -> Writing -> Formatting -> “Convert emoticons like π and π to graphics on display” is enabled.
The image link referred by Photon is listed below:
http://i1.wp.com/www.brunocunha.com/blog/wp-includes/images/smilies/icon_smile.gif?resize=980%2C9999When you visit the link, this error is showing:
“Sorry, the parameters you provided were not valid”If you try to access the real link, you’ll notice that it’s working:
http://www.brunocunha.com/blog/wp-includes/images/smilies/icon_smile.gifBy now, I’ll disable the “Convert emoticons” function but I still want to use it.
Is there any one who knows how to solve that?
@bruno. Thanks for the report. This has been fixed and you will see the update working in the Jetpack 2.0.1 release as soon as it comes out.
The image exists – it’s trying to call http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623×389.jpeg
When Photon is deactivated, it works fine, so it’s clearly an issue with Photon.
The image(s) is question reside in the image gallery for that post. I deleted the image in the article and put it back in there, to no avail. Again, if I deactivate Photon, all is well.
Thank you.
It seems the resized image still exists on your server, but the original image was deleted or did not exist.
When having a look at one of the other images in your post, I am able to find 2 images:
- The original image: http://www.automoblog.net/wp-content/uploads/2012/10/04-2013-lexus-gs-630op.jpeg
- The resized image: http://www.automoblog.net/wp-content/uploads/2012/10/04-2013-lexus-gs-630op-623×426.jpeg
Could you go to Settings > Media in your dashboard, and let me know what your Image settings are?
Do you use any plugin to help you manage or rename image files?
That’s interesting. Shouldn’t Photon still be able to display the resized image then?
My image settings:
http://www.automoblog.net/wp-content/uploads/2012/11/MediaSettings.png
The only image-manipulating program I use that I can think of is WP Smush-It (http://wordpress.org/extend/plugins/wp-smushit/)
Thanks!
Could you try to deactivate WP Smush-it, and upload and replace the 2 broken images in your post?
Let me know if that helps!
Hi Jeremy,
Thanks for all your help on this but since it’s definitely Photon causing this I’ve just deactivated it and resumed using my old CDN since I know it works. I might try Photon again in the future once the bugs are worked out.
Thanks again!
ChrisChris, I think we can help get Photon working for you. I was just looking through your earlier examples, and the filenames do seem to be a bit off.
Let’s use the first image as the example. The original image being called is http://www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623×389.jpeg – that works fine. When I deactivate Photon, it also displays fine. But when Photon is activated, it shows that it’s broken. When I try to view image (http://i2.wp.com/www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view.jpeg?resize=623%2C389) it says “We cannot complete this request, remote data was invalid”
The 1st link refers to filename 2013-Lexus-GS-350-front-side-view-623×389.jpeg
The 2nd link refers to filename 2013-Lexus-GS-350-front-side-view.jpegPhoton should see those as two separate images.
If you take the working image link from your site and apply Photon, it works as expected:
http://i2.wp.com/www.automoblog.net/wp-content/uploads/2012/10/2013-Lexus-GS-350-front-side-view-623×389.jpeg?resize=623%2C389Okay, so that’s a re-cap and establishes that the Photon API is in fact working. Next, if you’re interested in looking into it, I’d like to try to work out why you saw a Photon link for “2013-Lexus-GS-350-front-side-view.jpeg” (which doesn’t exist) instead of “2013-Lexus-GS-350-front-side-view-623×389.jpeg.” I suspect it’s either a bug or it’s a plugin conflict (which is what Jeremy was trying to test by asking you to temporarily deactivate WP-Smush-it).
Note that Photon applies lossless compression with jpegoptim for JPG files, so WP Smush-it isn’t needed for files served via Photon.
Jetpack 2.0.1 will be released soon, and it has several Photon updatesβI’m not sure if one of those will fix whatever is causing your issue, but it’s certainly worth trying out 2.0.1 when it comes out. If you’d like to look into the issue before then, I’d be happy to help especially if we can find and report a new bug (if it’s new, that is).
That’s interesting. Shouldn’t Photon still be able to display the resized image then?
It depends. Photon takes what is in the HTML source and compresses and caches it to make it faster. If you have some other plugin modifying image URLs before Photon filters the post, that could be the source of the problem.
Hello,
I’m having the same problem, but my original image does exist. This happens with any large images on my site. I have no plugins enabled except for JetPack.
I’ve gotten the same error message noted above, or “We cannot complete this request, remote data could not be fetched”
The image should be embedded in this gallery:
http://kylekrafka.com/projects/And the image that isn’t loading is at:
http://i1.wp.com/kylekrafka.com/wp-content/uploads/2013/01/IMG_1159.jpg?resize=216%2C216The other (originally) large images in the gallery didn’t work initially either, but after enough fiddling with loading the wp.com link, I got it to work… weird.
Thanks for any tips or advice.
-Kyle
@kjkjava Do you currently block access to your image directory? While browsing your site, I received the following authentication pop up:
http://i.wpne.ws/MegZIf you limit access to your images, it might also block Photon from caching and resizing your images.
@jeremy Thanks so much for taking a look. I did protect my wp-admin directory and it looks like you saw that because the JetPack Carousel script was trying to access wp-admin/admin-ajax.php. I’ll have to get rid of that.
However, that was a recent addition and I’ve been having the Photon problem for longer. In any case, I’ve disabled that and still have the problem.
Thanks,
KyleHi, I have a problem when I enable photon in jetpack. The logo on the website does not work properly. see picture. If I disable the photon it works fine again.
Images: http://dokumentarfilmer.se/pics/problem.jpg
- The topic ‘Photon breaking some images’ is closed to new replies.