Pijushgupta / avif-express

Wordpress plugin to convert jpg,png and webp to avif and render them
GNU General Public License v2.0
3 stars 2 forks source link

Very promising but is it abandoned? In case not a number of issues... #3

Closed tomasts248 closed 1 month ago

tomasts248 commented 9 months ago

Hi, first thank you for dev this, question are you providing support for this? If yes, I have a number of issues:

  1. The converting process gets stuck (there's an error in the console not sure if related) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
  2. No logs?
  3. When using rendering I'm getting 500 error. Kind Regards
Pijushgupta commented 9 months ago

No its not abandoned! That is a Bug(image.php line 155) due to Image Magic (7.0.25) Avif file type setting. There is no workaround. Bug : https://github.com/ImageMagick/ImageMagick/issues/4380

Any help appreciated.

tomasts248 commented 8 months ago

No its not abandoned!

Ahh great :)

That is a Bug(image.php line 155) due to Image Magic (7.0.25) Avif file type setting. There is no workaround.

I see..

Any help appreciated.

Wish I could but I'm not sure how really, oddly is a very old bug..

It does not actually create the .avif, but just copies it as jpeg and changes the file extension

Ok did some checking at least the image created as avif are not the same size as the original source images.. so perhaps is not the same linked issue? Most likely I'm wrong though.. There are some webp and avif images with 0 file size though..

Pijushgupta commented 8 months ago

Ok did some checking at least the image created as avif are not the same size as the original source images.. so perhaps is not the same linked issue? Most likely I'm wrong though.. There are some webp and avif images with 0 file size though..

Okay, are you sure its being processed by ImageMagic? Usually GD creates empty images in some cases. I had that issue before but unable recreate that. GD being in use as fallback of ImageMagic. Going remove GD logic in the upcoming updates

tomasts248 commented 8 months ago

I'm sorry my ignorance but how do you check that? at least the module in cpanel is enabled. May I suggest perhaps some log in the plugin so that we can tell whats happening behind the scenes.

Pijushgupta commented 7 months ago

I'm sorry my ignorance but how do you check that? at least the module in cpanel is enabled. May I suggest perhaps some log in the plugin so that we can tell whats happening behind the scenes.

logs : great idea, going to implement ASAP

Pijushgupta commented 1 month ago

Logging added