Discussion:
[Scribus] Export to CMYK JPEG or TIFF?
unknown
2007-12-01 18:24:13 UTC
Permalink
Hi all,

Is there a sane way to get Scribus designed pages exported as CMYK-Tiffs of
CMYK-Jpegs?

The printer requires this ...

Joh
unknown
2007-12-01 20:19:20 UTC
Permalink
Post by unknown
Hi all,
Is there a sane way to get Scribus designed pages exported as CMYK-Tiffs
of CMYK-Jpegs?
The printer requires this ...
Joh
... aside from using 'jpegicc' ...

Joh
unknown
2007-12-01 20:24:52 UTC
Permalink
I think that scribus can't export CMYK TIFF images. Probably the
simplest solution is to esport the image in RGB PNG format and then open
it with Krita and convert the PNG to CMYK TIFF...
Let me know if it works...
Post by unknown
Post by unknown
Hi all,
Is there a sane way to get Scribus designed pages exported as CMYK-Tiffs
of CMYK-Jpegs?
The printer requires this ...
Joh
... aside from using 'jpegicc' ...
Joh
_______________________________________________
Scribus mailing list
Scribus at nashi.altmuehlnet.de
http://nashi.altmuehlnet.de/mailman/listinfo/scribus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20071201/23f2db1d/attachment.html
unknown
2007-12-02 17:01:00 UTC
Permalink
Thanks for the hint - works indeed. I can see no real difference though
between the Krita output and the one produced by 'jpegicc' - using the same
*.icc ... evaluating the images with imagemagick's 'identify -verbose
*.jpg', I see that the channel statistics differ and the standard
deviations are smaller for the jpegicc case ... I'm totally new to this and
would appreciate a comment as to what might be the preferable solution.

Thanks, Joh
Post by unknown
I think that scribus can't export CMYK TIFF images. Probably the
simplest solution is to esport the image in RGB PNG format and then open
it with Krita and convert the PNG to CMYK TIFF...
Let me know if it works...
Post by unknown
Post by unknown
Hi all,
Is there a sane way to get Scribus designed pages exported as CMYK-Tiffs
of CMYK-Jpegs?
The printer requires this ...
Joh
... aside from using 'jpegicc' ...
Joh
_______________________________________________
Scribus mailing list
Scribus at nashi.altmuehlnet.de
http://nashi.altmuehlnet.de/mailman/listinfo/scribus
unknown
2007-12-03 01:05:36 UTC
Permalink
Post by unknown
Thanks for the hint - works indeed. I can see no real difference though
between the Krita output and the one produced by 'jpegicc' - using the same
*.icc ... evaluating the images with imagemagick's 'identify -verbose
*.jpg', I see that the channel statistics differ and the standard
deviations are smaller for the jpegicc case ... I'm totally new to this and
would appreciate a comment as to what might be the preferable solution.
jpegicc was written as a demo program for lcms, the colour management
engine used by Scribus and by Krita. Your results should be pretty
similar no matter how you do it, and I wouldn't worry too much. Do try
to use an uncompressed or losslessly compressed image format (eg BMP)
when exporting from Scribus, though.

I've been very happy with tifficc's output in the past. I use it at work
to do batch conversion of printed CMYK TIFFs back to something the paper
can use on its website - among other things.

Imagemagick's `convert' command is also very handy.

--
Craig Ringer
unknown
2007-12-04 18:56:57 UTC
Permalink
I used Krita to convert images from RGB to CMYK and then i imported all
of them in scribus.
The project has been printed and te final result is perfect. Nice
colors, with no distorsions...
Post by unknown
Post by unknown
Thanks for the hint - works indeed. I can see no real difference though
between the Krita output and the one produced by 'jpegicc' - using the same
*.icc ... evaluating the images with imagemagick's 'identify -verbose
*.jpg', I see that the channel statistics differ and the standard
deviations are smaller for the jpegicc case ... I'm totally new to this and
would appreciate a comment as to what might be the preferable solution.
jpegicc was written as a demo program for lcms, the colour management
engine used by Scribus and by Krita. Your results should be pretty
similar no matter how you do it, and I wouldn't worry too much. Do try
to use an uncompressed or losslessly compressed image format (eg BMP)
when exporting from Scribus, though.
I've been very happy with tifficc's output in the past. I use it at work
to do batch conversion of printed CMYK TIFFs back to something the paper
can use on its website - among other things.
Imagemagick's `convert' command is also very handy.
--
Craig Ringer
_______________________________________________
Scribus mailing list
Scribus at nashi.altmuehlnet.de
http://nashi.altmuehlnet.de/mailman/listinfo/scribus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20071204/e5f64a30/attachment.html
unknown
2007-12-13 19:40:31 UTC
Permalink
To put an end to this story: although I didn't follow the advise to use a
lossless format and go the tifficc route and went through with direct jpg
export from scribus and jpegicc, the results are very nice after print.
Thanks for chiming in everybody!

Joh
Post by unknown
Thanks for the hint - works indeed. I can see no real difference though
between the Krita output and the one produced by 'jpegicc' - using the
same *.icc ... evaluating the images with imagemagick's 'identify -verbose
*.jpg', I see that the channel statistics differ and the standard
deviations are smaller for the jpegicc case ... I'm totally new to this
and would appreciate a comment as to what might be the preferable
solution.
Thanks, Joh
Post by unknown
I think that scribus can't export CMYK TIFF images. Probably the
simplest solution is to esport the image in RGB PNG format and then open
it with Krita and convert the PNG to CMYK TIFF...
Let me know if it works...
Post by unknown
Post by unknown
Hi all,
Is there a sane way to get Scribus designed pages exported as
CMYK-Tiffs of CMYK-Jpegs?
The printer requires this ...
Joh
... aside from using 'jpegicc' ...
Joh
_______________________________________________
Scribus mailing list
Scribus at nashi.altmuehlnet.de
http://nashi.altmuehlnet.de/mailman/listinfo/scribus
unknown
2008-03-01 02:52:02 UTC
Permalink
Hi

you mention that you used tifficc to batch process image file to cmyk
images, I only make this works "jpegicc -oprinter.icm inrgb.jpg
outcmyk.jpg" in windows environment,

is that a options could let us jpegicc -oprinter.icm "soure path floder
image file" "destination path" something like jpegicc -oprinter.icm
e:/photos/*.jpg e:/cmyk/

Thanks
Good day
--
View this message in context: http://www.nabble.com/Export-to-CMYK-JPEG-or-TIFF--tp14108129p15771984.html
Sent from the Scribus mailing list archive at Nabble.com.
unknown
2008-03-01 17:43:05 UTC
Permalink
Post by unknown
Hi
you mention that you used tifficc to batch process image file to cmyk
images, I only make this works "jpegicc -oprinter.icm inrgb.jpg
outcmyk.jpg" in windows environment,
is that a options could let us jpegicc -oprinter.icm "soure path floder
image file" "destination path" something like jpegicc -oprinter.icm
e:/photos/*.jpg e:/cmyk/
The process I use tifficc in first converts from a printer-specific CMYK
tiff to an sRGB tiff, then feeds the result into ImageMagick's mogrify
tool to resize the images. It's really very simple, in that most of it
is documentation and error handling.

If you're working on Windows a shell script won't be much good to you.
You could use the cmd.exe shell, but it's really pretty pathetic and the
syntax is truly awful even compared to berkeley-derived shells like
bash. Windows Scripting Host would work if you're one of the three
people in the world who knows how to use it. Personally I'd recommend
using your preferred scripting language to write a short script to do
the job. In your position on Windows I'd be using Python.

Alternately, you could install Cygwin (a UNIX-like environment for
Windows) and use the attached script, maybe with a few tweaks for
cygwin. I don't recommend that, though, and I think you're much better
off writing a little script to do it yourself.

An untested example in quick and dirty Python with little error handling
and no directory recursion follows. You could improve it pretty easily
even if you know little or no Python.

#!/usr/bin/env python
tifficc_path="C:\\path\\to\\tifficc.exe"
tifficc_args=["-t0","-oprinter.icm"]
import os
import sys
if len(sys.argv) < 3:
print "Usage: %s input_dir output_dir"
for infile in [ x for x in os.listdir(argv[1]) if os.path.isfile(x) ]:
fileext = os.path.basename(infile).split(".")[-1]
if fileext.lower() not in ["tiff", "tif"]:
continue
outfile = os.path.join(argv[2],os.path.basename(infile)
ret = os.execv(tifficc_path, tifficc_args + [infile, outfile])
if ret != 0:
print "WARNING: Failed to convert %s" % infile

Obviously lots can be improved in the above: capturing the tifficc error
and reporting it neatly rather than letting it be dumped on stderr;
checking for indir = outdir (note: this can never be done perfectly due
to ntfs junctions etc, but in practice is useful anyway); making it less
ugly, etc.

I've attached the shell script I use. As you can see it's nothing special.
--
Craig Ringer

------------------------------------------------------------------------

#!/bin/bash

set -u

if test $# -ne 1 ; then
echo ""
echo "Usage: $0 /absolute/path/to/pages/directory"
echo ""
echo " The target directory will be recursively scanned for images to convert."
echo " This script will actually work with any directory containing TIFF images as the target."
echo " To get an accurate conversion the images should be sRGB or have an embedded profile."
echo ""
echo " Result images will be written to a newly created subdirectory of the current directory:"
echo " (`pwd`/webimg-`date -I`)"
echo ""
exit 1
fi
srcdir="$1"

if test "${srcdir:0:1}" != "/" ; then
srcdir="`pwd`/$srcdir"
echo "Input path wasn't absolute. Using:"
echo " $srcdir"
echo ""
fi

mkdir -p webimg-`date -I`
outdir="`pwd`/webimg-`date -I`"
echo "Will write output to: $outdir"
cd "$outdir"

# Num leading chars of path to strip
declare -i chstrip=$(( ${#1} ))

IFS='
'
for f in `find "$srcdir" -type d -name .AppleDouble -prune -fprint /dev/null -o -type f -iname \*.tif -print -o -type f -iname \*.tiff` ; do
# Strip path prefix
x="${f:${chstrip}}"
# and replace / with _ throughout the string
outfile="${x//\//_}"
echo "Processing <<$f>> to <<$outfile>> ..."
tifficc -t0 "$f" "$outfile"
tifficcerr=$?
if test "$tifficcerr" -ne 0 ; then
echo "TiffICC: $tifficcerr. I'll copy it over and see what happens. This is usually OK."
echo -n "File info on original: "
file "$f"
outfile="err_${outfile}"
cp "$f" "$outfile"
fi
mogrify -resize 320x320 -format jpeg "${outfile}"
mogrifyerr=$?
if test "$mogrifyerr" -ne 0 ; then
echo "Mogrify error $mogrifyerr; You'll have to fix ${outfile} yourself."
else
rm "${outfile}"
fi
done
IFS="$save_IFS"

echo "Finished, wrote output to $outdir"
Continue reading on narkive:
Loading...