• Since the last Jetpack update, Photon loads pre-cropped image width-height proportions. That breaks page layout designs. We have since deactivated it to save our theme. Our images have been cropped and resized using Post Thumbnail Editor and previous versions of this plugin and Photon have worked fine for since we last activated Photon about 10 months ago.

    https://www.ads-software.com/plugins/jetpack/

Viewing 3 replies - 16 through 18 (of 18 total)
  • @adrian – And on desktops ?? ??

    Screenshot image info Photon active:
    https://dl.dropboxusercontent.com/u/3306550/photon-active.png

    Screenshot image info Photon not active:
    https://dl.dropboxusercontent.com/u/3306550/photon-not-active.png

    I think it has something to do with Photon not caching the correct image? (Because Photon seems to return the full sized original image, not any of the other cropped or resized images that the browser is requesting)

    @rogerwheatley can you show us the html with and without photon active?
    In my case I initially thought there was a problem with the cached image that photon cached, but after checking the html my best guess is that the inserted width="249" is the culprit.

    It looks as though photon only caches one size of image, whereas the media library (for performance reasons?) creates several sizes for each image.

    Image without photon:
    src="ballot-woman-300px-250x254.png"
    Image with photon:
    width="249" src="...ballot-woman-300px.png?zoom=3&fit=250%2C254&ssl=1"

    The full size image 300px.png has dimensions 295×300
    The non-photon image 300px-250×254.png is (as the name implies) 250×254
    The parameters on the end of the photon image URL cause photon to serve an image with dimensions 249×254
    So the width="249", which I think the photon code adds, should be unnecessary

    And the inserted width="249" causes the wrong aspect ratio when combined with the height="100" parameter that I specified via an option in my plugin.

    If the photon code stopped inserting the width="xxx" I think it would cure my problem.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @rogerwheatley @adrian Your problemw seem quite different from the original thread. As per the Forum Welcome, I’d recommend creating new threads for each one of your issues to avoid polluting the original thread.
    https://www.ads-software.com/support/plugin/jetpack#postform

    Thank you!

    Until then, to answer some of your questions:

    It looks as though photon only caches one size of image

    Photon caches multiple version of your images, one for each requested size, but all images are based off the original image, and not off the resized versions created by your WordPress installation.

    The parameters on the end of the photon image URL cause photon to serve an image with dimensions 249×254
    So the width=”249″, which I think the photon code adds, should be unnecessary

    The size parameters are added to match the size parameters inserted in the post content, and the actual content width set by your theme and the device content.

    It might be worth looking at the HTML output as displayed in your post content, inside the post editor under the HTML tab.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Photon loads wrong image proportions’ is closed to new replies.