• Kim

    (@kimikaze)


    I’m having an issue when defining EWWW_DISABLE_ASYNC and importing images with the media_sideload_image() function. Only a webp image for the full size image is created. The expected result would be that a webp variant are created for all image sizes synchronously. Are my expectations here wrong? If they are, is there a different way to get the webp images to generate synchronously?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support adamewww

    (@adamewww)

    Hi @kimikaze

    Have you tried different images? It is possible that the WebP versions aren’t being created because they are larger than the original (thumbnails). Our plugin won’t generate a WebP if it’s larger than the image it’s creating a WebP for (as that’s the point of using WebP). Otherwise, I believe it should work, though I don’t know that I understand why you are wanting to disable async?

    Thread Starter Kim

    (@kimikaze)

    Webp images are generated when not defining EWWW_DISABLE_ASYNC, so I don’t think that is the issue. The reason for disabling async is that this is for a import script that is already running async, and we are seeing webp images “randomly” not being offloaded to our cdn solution. Running the conversion and offloading synchronously is an attempt to prevent this issue.

    Plugin Support adamewww

    (@adamewww)

    Hrm. Is it possible that the import process isn’t running wp_generate_attachment_metadata like a normal upload (as that is how EWWW IO normally hooks into the process)?

    Otherwise, I think we might need to generate a debug log to see if we can see what’s going on. To do that:

    1. Go to the support tab of the plugin settings and check the box for debugging and save
    2. Go back to the support tab and select the option “Clear log” so we have a clean slate
    3. Import an image via the process that is having the issue and give it about 10 seconds.
    4. Go back to the support tab and click on “Download Log” to save the debug log
    5. Send the name of the image you imported along with the debug log over to us: https://ewww.io/contact-us/
    6. Uncheck the box for debugging and save so it doesn’t keep running.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.