Quantcast
Channel: WordPress.org Forums » [Jetpack - WP Security, Backup, Speed, & Growth] Support
Viewing all articles
Browse latest Browse all 37006

Aaron D. Campbell on "[Plugin: Jetpack by WordPress.com] Photon breaking some images"

$
0
0

We ran into a similar issue recently.

The 1st link refers to filename 2013-Lexus-GS-350-front-side-view-623x389.jpeg
The 2nd link refers to filename 2013-Lexus-GS-350-front-side-view.jpeg

Photon should see those as two separate images.

Unfortunately, it doesn't seem that this is true. If you look on line 262 of class.photon.php you'll see that it's striping the size information from the image unless it looks like a custom cropped image. This means that if you upload an image named something like my-image-500x500.jpg, Photon will think this is a WP-resized image and will actually pass my-image.jpg in the URL it generates. Unfortunately, in this case that image doesn't exist. In reality, the resized images will look more like my-image-500x500-300x300.jpg.


Viewing all articles
Browse latest Browse all 37006

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>