GIMP: export image to base64

Ten post dostępny jest także w języku: Polish

New task at work: “Please make GIMP export file to base64”

Some googling later… Here it is, great post at dev-maziarz.blogspot.com.

Now let’s plug it into GIMP so we can automate the process… I’ve written my first plugin for GIMP! (: You can find it on GitHub as gimp-plugin-base64_file_encoder.

Hope you’ll find it useful.

Readme:

gimp-plugin-base64_file_encoder

Encode current image to base64 and put it in clipboard and image directory

Instalation:

Put base64_file_encoder.py in ~/.gimp-2.8/plug-ins and set the file permissions to execute via RMB→Properties or chmod +x base64_file_encoder.py.

Usage:

You’ll find new command under File/Encode to base64

After running you’ll be able to copy base64 code from clipboard and find your encoded file in image directory with *.base64 extension.

IT DOESN’T OVERWRITE YOUR IMAGE FILE

Podobne wpisy