Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
172 user(s) are online (161 user(s) are browsing Forums)

Members: 1
Guests: 171

Skateman, more...

Support us!

Headlines

 
  Register To Post  

how to create xcf file from given image? (gimp-related)
Quite a regular
Quite a regular


See User information
Does anyone knows how to convert any image into gimp's internal xcf fromat?
Imagemagick only reads the format. Readme file suggests imagamagick.
xcftools can read only as well.

Any ideas?
Jack

Go to top
Re: how to create xcf file from given image? (gimp-related)
Quite a regular
Quite a regular


See User information
@Jack

I've searched for a program on the internet and i couldn't find one. I have to convert my files on my Linux installation with Gimp.

Go to top
Re: how to create xcf file from given image? (gimp-related)
Quite a regular
Quite a regular


See User information
@cygnusEd

Quote:

I've searched for a program on the internet and i couldn't find one. I have to convert my files on my Linux installation with Gimp.


There was a hope that this is not the case.
Anyway, I already did it with linux gimp, just wondered if there's an Amiga-way...
I its absence, here's the shell script + gimp script I quickly adapted from the 1-st hit on the net (needs "chmod +x"):

Quote:

#!/bin/sh
# dmmANY2XCF.sh
# Invoke The GIMP with Script-Fu dmmANYtoXCF.scm
# No error checking.
if [ ! -e $1 ]
then
echo "Usage: dmmANYtoXCF.sh filename"
echo "Error: Parameter (filename) required"
exit 1
fi

gimp -c -i -d -b "(dmmANYtoXCF \"$1\" \"`basename $1`.xcf\")" -b "(gimp-quit 0)"


Usage: full-or-relative-path-to-the-script somefile
The script requires this gimp script in the ~/.gimp-2.x/scripts:

Quote:

; dmmANYtoXCF - GIMP Script-Fu to convert an image to XCF firmat
; This Script-Fu must be put in The GIMP's script directory
; (e.g., $HOME/.gimp-1.2/scripts).
; For command-line invocation, use the shell script dmmANYtoXCF.sh
; For interactive invocation, run The GIMP and go to
; Xtns -> Script-Fu -> dmm
;
(define (dmmANYtoXCF infile outfile)
(let* ((image (car (gimp-file-load 1 infile infile)))
(drawable (car (gimp-image-active-drawable image)))
)

(gimp-file-save 1 image drawable outfile outfile )
)
)


(script-fu-register ; I always forget these ...
"dmmANYtoXCF" ; script name to register
"<Toolbox>/Xtns/Script-Fu/dmm/dmmANYtoXCF" ; where it goes
"dmm ANY image (RGB or Indexed) to XCF" ; script description
"Yakov Mindelis (adapted from D. M. MacMillan's PNGtoGRAYSCALE)" ; author
"Copyright 2009 by Yakov Mindelis; GNU GPL" ; copyright
"2009-02-15" ; date
"" ; type of image
SF-FILENAME "Infile" "infile" ; default parameters
SF-FILENAME "Outfile" "outfile"
)

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project