Closed Username23453 closed 1 year ago
Sure, I'll take a look at it later. Thanks for reporting.
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
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?
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.
@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
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:
Download the nautilus-fileconverter.py file from the release page.
Git users can also get the repository with these commands:
git clone https://github.com/Lich-Corals/Nautilus-fileconverter-43
cd ./Nautilus-fileconverter-43
sudo mv nautilus-fileconverter.py /usr/share/nautilus-python/extensions/nautilus-fileconverter.py
mv nautilus-fileconverter.py ~/.local/share/nautilus-python/extensions/nautilus-fileconverter.py
Now you only have to restart Nautilus using the following commands:
nautilus -q
nohup nautilus & disown
@Lich-Corals , got it to work now! Thanks a million! works beautifully now :) It can do heic & avif now.
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!