• Resolved jakobmichaelis

    (@jakobmichaelis)


    I have had this successfully implemented for a few months now. Recently I’ve ran into a problem where the specified image size being specified is ignored for certain taxonomy pages using the same taxonomy template. I’m using the function

    <?php echo z_taxonomy_image_url($terms->term_id, 'pageHead'); ?>

    pageHead is the image size.

    When I load the taxonomy page (treated like a category), some show the pageHead size. Others just pull the full image. I don’t know what’s causing some to refuse the requested image size.

    https://wordpress.org/plugins/categories-images/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jakobmichaelis

    (@jakobmichaelis)

    Follow-up. I think this is resolved. I’m using Post Thumbnail Editor and it had a cache feature enabled that was confusing this plugin when trying to find the appropriate image size file.

    Thread Starter jakobmichaelis

    (@jakobmichaelis)

    A second follow-up. This is not resolved. I disabled the caching feature but it seems like random images are being pulled as the original file rather than the declared image size. I can’t find any pattern to follow as to what would be tripping the function. If I use a new image, it appears to be honored. However, if I use an existing image, it is not honored, yet other images in the same upload year/month folder are honored for different taxonomy categories. I can send an email with specific links to investigate if needed.

    You’re not alone with this issue. Did you figure out the problem? I’m looking at plugin’s code to see if I can figure out what’s causing it, but no luck so far.

    Thread Starter jakobmichaelis

    (@jakobmichaelis)

    Unfortunately I haven’t. There may be a connection with older photos not being acknowledged but I can’t find the line where it’s considered an “old” photo vs. a newer photo that works as expected.

    When I’m testing locally, it’s only occurring when the original image is smaller than the size I’m specifying, which makes sense because that’s the default behavior for wp_get_attachment_image_src() which is what is ultimately returning the images. But when I have this running on my server, it’s failing to return smaller files even when the original is huge (15MP images). It is seemingly random on the live site.

    Plugin Author Zahlan

    (@elzahlan)

    Hey guys,

    I tried to test this but couldn’t, everything looks fine with me, however I recommend you to use a resize plugin like regenerate-thumbnail to resize all images to make sure that every single images had been resized with all the supported sizes in wordpress, I will mark this as resolved till you reply back if you faced any more problems about this issue.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Image size randomly not acknowledged’ is closed to new replies.