Lich-Corals / linux-file-converter-addon

Convert between various image, audio and video formats.
GNU General Public License v3.0
14 stars 6 forks source link

Cant convert .heic image files or .avif image files. #16

Closed Username23453 closed 12 months ago

Username23453 commented 1 year ago

Just want to say thanks again for making this image converter tool. I do a lot of photo editing & I always use PNG format, so I convert many of my image files in bulk to PNG. However heic & avif dont work & never have. Not sure why? Could you please help me fix this? (Tagging @Lich-Corals , & @derVedro )

-Thanks again!

Lich-Corals commented 1 year ago

Sure, I'll take a look at it later. Thanks for reporting.

Lich-Corals commented 1 year ago

I just fixed the problem, but you need to install pyheif to convert those files. You can use this command to install it:

    pip install pyheif
Username23453 commented 1 year ago

Thanks, I installed it like you suggested & it installed successfully. It made quite a bit of terminal logs though, I wish I could've saved them. But I had to restart my laptop to see if that would help. But nothing helped, and installing pyheif didnt work for me. Nothing has changed. When I use Nautilus, ever since I first installed your file converter, when I right click on an .avif file, the menu always has given me your option to "Convert to.." but when i select PNG(or any type), it does nothing. And when i right click on a .heic file, there is no right click menu option. Even after installing pyheif and restarting.
What should i do?

Lich-Corals commented 1 year ago

Thanks for the feedback @Username23453, I'm not able to reproduce the issue, but your description sounds like an error in the python script.

Could you comment out line 17 (print = lambda *wish, **verbosity: None) it the script, by adding an '#' in front of it, then add this line below it: print(f"VERSION: {pyheif.__version__}"). When that's done, run the nautilus command in the terminal, and click some images of different types, the terminal should show something like this:

image/heif
image/avif
image/png

If you get any errors referring to the script, please send me those. The terminal should also show something like this: 'VERSION: 0.7.1', this is the version of pyheif you've installed.

Username23453 commented 1 year ago

@Lich-Corals ,I'd do what you say, but you said line 17, which is way off in my script line-wise. So i think I should 1st show you what my script looks like & we can go from there, check it out, maybe it's out of date or something: nautilus-fileconverter,COPY.txt

Lich-Corals commented 12 months ago

Yes @Username23453, you didn't install the updated script. Run the installation commands again, then try the extension again. And be sure to update the right file, the one in /usr/share/ or in ~/.local/share/, depends on where you've installed it.

Here the commands:

Username23453 commented 12 months ago

@Lich-Corals , got it to work now! Thanks a million! works beautifully now :) It can do heic & avif now.