Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] standalone PSD -> Gimp XCF converter

2,987 views
Skip to first unread message

toby

unread,
Dec 22, 2010, 11:02:54 PM12/22/10
to
Hi,

I'd like to announce a command-line tool which converts PSD or PSB
files to layered XCF (v1), in RLE or uncompressed formats. I am aware
that Gimp imports PSD, but I've seen it reported that some files do
not import in layers, while this utility always produces a layered
XCF. Also, there may be situations where this conversion is required
but neither Photoshop nor Gimp is available.

* supports 8-bit RGB, Grey Scale and Indexed modes
* portable (tested on OS X, Linux, Windows)
* open source (GPL)
* very fast
* may help to recover damaged PSDs - based on the robust psdparse
code

Limitations:
* currently converts image layers only
* does not yet convert image masks

Binaries (OS X Intel/PPC, Win32) and source code available via:
http://telegraphics.com.au/sw/#psd2xcf

--Toby

Lawrence D'Oliveiro

unread,
Dec 23, 2010, 1:17:53 AM12/23/10
to
In message
<82818b27-1b6a-4e50...@i18g2000yqn.googlegroups.com>, toby
wrote:

> I'd like to announce a command-line tool which converts PSD or PSB
> files to layered XCF (v1), in RLE or uncompressed formats. I am aware
> that Gimp imports PSD, but I've seen it reported that some files do
> not import in layers, while this utility always produces a layered
> XCF.

Why not just roll your code into improving the Gimp importer?

> Also, there may be situations where this conversion is required
> but neither Photoshop nor Gimp is available.

Where can there be a situation where your app is downloadable but Gimp is
not?

toby

unread,
Jan 19, 2011, 3:17:43 PM1/19/11
to
On Dec 23 2010, 3:17 am, Lawrence D'Oliveiro <l...@geek-
central.gen.new_zealand> wrote:
> In message
> <82818b27-1b6a-4e50-97fe-fa58a5c45...@i18g2000yqn.googlegroups.com>, toby

> wrote:
>
> > I'd like to announce a command-line tool which converts PSD or PSB
> > files to layered XCF (v1), in RLE or uncompressed formats. I am aware
> > that Gimp imports PSD, but I've seen it reported that some files do
> > not import in layers, while this utility always produces a layered
> > XCF.
>
> Why not just roll your code into improving the Gimp importer?
>

For one reason: it would have been at least 20x the effort, all things
considered, including learning the Gimp codebase. I don't have the
time budget for that. This converter was only about 3 or 4 evenings'
work. If somebody wanted to sponsor improvements to Gimp I'm all ears.
(Gimp devs have always been free to draw upon psdparse's underlying
code.)

> > Also, there may be situations where this conversion is required
> > but neither Photoshop nor Gimp is available.
>
> Where can there be a situation where your app is downloadable but Gimp is
> not?

It may not be an issue of 'downloadable'. The runtime/resources
requirements are completely different. My utility is perfectly suited
to non-interactive, server based or on-the-fly conversion, and is fast
and inexpensive.

--Toby

PS. Good to speak to you again. We met in person a very long time ago,
not sure if you remember :)

Message has been deleted

toby

unread,
Jan 21, 2011, 4:12:14 PM1/21/11
to
On Jan 20, 5:03 pm, John Stafford <n...@droffats.net> wrote:
> In article
> <d3a77ac0-9e5c-42fe-b9c8-32fcac19e...@m13g2000yqb.googlegroups.com>,

>
>  toby <t...@telegraphics.com.au> wrote:
> > It may not be an issue of 'downloadable'. The runtime/resources
> > requirements are completely different. My utility is perfectly suited
> > to non-interactive, server based or on-the-fly conversion, and is fast
> > and inexpensive.
>
> Did you use ImageMagick?

No, it's all my code.

a.ja...@gmail.com

unread,
Aug 2, 2012, 3:04:26 AM8/2/12
to
$ make
gcc -W -Wall -O2 -g -O2 -o psdparse main.o writepng.o writeraw.o unpackbits.o write.o resources.o icc.o extra.o constants.o util.o pdf.o descriptor.o channel.o psd.o scavenge.o mmap.o psd_zip.o duotone.o -lpng
main.o: In function `main':
psdparse/main.c:326: undefined reference to `rebuild_psd'
collect2: ld returned 1 exit status
make: *** [psdparse] Error 1

ubuntu 12.04

a.ja...@gmail.com

unread,
Nov 24, 2012, 5:03:37 AM11/24/12
to
четверг, 2 августа 2012 г., 10:04:26 UTC+3 пользователь a.ja...@gmail.com написал:
aclocal
automake -a -f --foreign
./configure
make


gcc -W -Wall -O2 -g -O2 -lz -o psd2xcf psd2xcf.o xcf.o psd.o util.o extra.o descriptor.o constants.o pdf.o resources.o icc.o channel.o psd_zip.o unpackbits.o duotone.o -lpng
psd_zip.o: In function `psd_unzip_without_prediction':
psd_zip.c:50: undefined reference to `inflateInit_'
psd_zip.c:54: undefined reference to `inflate'
collect2: ld returned 1 exit status
make: *** [psd2xcf] Error 1
0 new messages