• Resolved kdias

    (@kdias)


    Hello,

    First of all, thanks for the plugin !

    I have a question, though.

    I listed every thumbnail I needed in the functions.php of my theme, but I disabled the auto-generation of them all.
    So the thumbnails are generated only when needed and called from my timber templates :
    Image(post.description_image).src|resize('service_content')

    That creates a new thumbnail, with the following pattern as a filename : picture-name-157×0-c-default.png.

    The issue is that Imagify doesn’t want to generate the associated WebP, even when I’m trying to do it manually from the Media Library.

    Is there a way to make this generation work, please ?

    Thank you !

Viewing 1 replies (of 1 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi Kdias!

    This is Joseph from Imagify, and I’ll gladly assist you here!

    I’ll start with some general information and limitations, and we can work from there to see if there is a workable solution we can find for you.

    Generally speaking, Imagify will only automatically optimize images that are uploaded the standard way in your Media Library using the WP Admin. Also, Imagify won’t be able to optimize images in the Media Library if the image names are changed from what they were when they were uploaded.

    Given that your process doesn’t upload images the traditional way, auto-optimization won’t be able to work. Also, since the images are not being registered as they normally would be when uploading them the standard way and the names are different than they would be if WordPress were creating them (picture-name-157×157.png for example), I don’t believe you’ll be able to optimize these images from within the Media Library.

    With all of that said, is there any way you could try creating the thumbnails in a different custom folder? If you can, then you may be able to add that folder to the “Custom Folders” section in your Imagify plugin settings page. While auto-optimization can’t work for custom folders, this may at least allow you to run the Bulk Optimizer periodically to optimize the thumbnails.

    Please let me know what you think, and I’ll be glad to continue assisting however I can!

    Best regards,
    Joseph

    • This reply was modified 3 years, 8 months ago by WP Media.
Viewing 1 replies (of 1 total)
  • The topic ‘Not working with “|resize ” (Timber)’ is closed to new replies.