Lost png files
-
I need to uncheck the optimize image, because the png images lost with the last autoptimize update.
-
that’s surprising as I have some PNG’s on my own site and those work, see e.g. https://blog.futtta.be/2020/10/09/autoptimize-with-support-for-avif-images/
do you have a non-production site where you could leave things broken for me to investigate what is (not) happening on your site?
Hey @nparede ;
We have since discovered that if
* you have optimize images and “use webp/ avif” on
* you have png with transparency
* you’re using firefox with avif enabled (not the case by default)that the png’s turned into avif’s are not rendered by Firefox, so maybe that is what happening at your side too?
If something else, you can exclude png’s from being optimized with below code snippet;
add_filter('autoptimize_filter_imgopt_noptimize','imgopt_excl'); function imgopt_excl() { return '.png'; }Let me know if you have any more info! π
frank
Excuse me for the delay, I can see this answer just today, because it wasn’t notify me before.
Yes I’m using the webp/avif on option. The Issue persist.
The link have a wrong address. The crashed linked is that:
https://cenda.com.ar/especialidades/traumatologia/w_372/https:/cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372×142-1.webpThe real link is
https:/cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372×142-1.webpThere are something I can do?
Thanks foro your answer.but https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372%C3%97142-1.webp does not work either @nparede, it gives a 404 (file not found)? moreover it is not a .png, so the problem is not with png’s after all?
Well, you are right. It was function when I try. I think I doesn’t clear cache.
Now I have to desable the optimize see the images.but https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372%C3%97142-1.webp still doesn’t work, so the shortpixel optimized version cannot either?
on the other hand https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372×142-1.webp does exist and https://cdn.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_372/https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372×142-1.webp does work as well.
lastly; I see you’re (also) using Shortpixel (the “legacy” local version) to optimize your images, in which case you don’t really benefit from the shortpixel optimization integrated in AO; one of the two (AO image opt. or Shortpixel plugin) is enough π
I think I found the issue. Is the x
The real address use “x” letter
The crashed address use “Γ” sign or urlencode %C3%97
https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372×142-1.webp
https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372Γ142-1.webp
https://cenda.com.ar/wp-content/uploads/2019/12/CENDA-web-372%C3%97142-1.webp-
This reply was modified 5 years, 7 months ago by
nparede.
I didnt know that AO image opt. replace the Shortpixel plugin. I allways suppose I must use both.
Thanks for your answer and support.
so does this (images breaking to to
xin the filename being encoded) indeed not happen when the shortpixel plugin is not active any more?Yes, you are right. With just one plugin active AO or Shortpixel there are no issue. It can load the images well.
OK, good to know, thanks for the feedback π
have a nice day!
frank -
This reply was modified 5 years, 7 months ago by
The topic ‘Lost png files’ is closed to new replies.