Plugin/script/package for image converting?


ICDeadPpl

Recommended Posts

  • 1 year later...
7 hours ago, Chris_bacon said:

Did you end up finding a solution? Trying to do the same but tiff to JPG

I solved it by downloading ffmpeg and using it to convert GIF to PNG.

I added this to my 'go' file:

# Start install ffmpeg
cd /tmp
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
tar xf ffmpeg-git-amd64-static.tar.xz
rm ffmpeg-git-amd64-static.tar.xz
cd ffmpeg*
cp ffmpeg /usr/local/bin/
cp ffprobe /usr/local/bin/
chmod 777 /usr/local/bin/ffmpeg
chmod 777 /usr/local/bin/ffprobe
cd ..
rm -rf ffmpeg*
# End install ffmpeg

Then I use this in a script to convert from GIF to PNG:

/usr/local/bin/ffmpeg -y -i image001.gif image001.png

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.