If I have an XCF file (or any other supported by Gimp) how can I convert it to, for example, PNG for display or further processing?
Bash – Converting XCF and other files using command line with GIMP
bashcommand-linegimpimagescript-fu
Related Question
- Bash – Extract filename and extension in Bash
- Mysql – How to get a list of user accounts using the command line in MySQL
- Bash – How to convert a string to lower case in Bash
- Bash – How to echo shell commands as they are executed
- Bash – How to set a variable to the output of a command in Bash
- Postgresql – Run a PostgreSQL .sql file using command line arguments
- Mysql – How to import an SQL file using the command line in MySQL
- Run R script from command line
Best Solution
I'm a couple of years late, but I thought I'd add what I think is by far the best solution: there is a tool suite called Xcftools (on Ubuntu,
apt-get install xcftools
), which has a utility calledxcf2png
that does this job perfectly.This is much better than a) using ImageMagick (which as I said in a comment above is horribly broken), or b) using Gimp (which has an extremely complicated scripting language for simply exporting an image).