Bash script converts jpeg in Debian, won't work in Puppy.

Using applications, configuring, problems
Post Reply
Message
Author
oli
Posts: 194
Joined: Wed 30 Aug 2006, 09:04
Location: Germany, Frankfurt

Bash script converts jpeg in Debian, won't work in Puppy.

#1 Post by oli »

Hi,
I've got a shellscript running errorless with Debian (bash). Now I want to start the same script with rxvt and I get an error. This is the command that causes the error:

sh-3.00# convert -resize 120x120 /mnt/hdc1/bilder/test.jpg
convert: missing an image filename `/mnt/hdc1/bilder/test.jpg'.

Why do I get this message? I tried several quotation marks but nothing works. Can someone give me a help.

Oli

oli
Posts: 194
Joined: Wed 30 Aug 2006, 09:04
Location: Germany, Frankfurt

#2 Post by oli »

Some additional informations:

sh-3.00# which convert
/usr/bin/convert
sh-3.00# convert --version
Version: ImageMagick 6.2.9 08/15/06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

The original part of the shell script is:

convert -geometry ${groesse}% -quality $qualitaet $datei $THUMB/$datei

Oli

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

you must specify a output-filename:
convert -resize 120x120 1.jpg 1-new.jpg
Mark

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#4 Post by trapster »

Maybe this is old (?):

http://amath.colorado.edu/computing/sof ... nvert.html

They list -size and -geometry as an option, not -resize.
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#5 Post by rarsa »

oli wrote:sh-3.00# convert -resize 120x120 /mnt/hdc1/bilder/test.jpg
convert: missing an image filename `/mnt/hdc1/bilder/test.jpg'.
Do you have something mounted at hdc?

If the image is in a CD and you mounted it with MUT, it usually mounts to /mnt/hdc.

The bottom line is: Use rox to navigate where the file is and make sure that you are using exactly the same location when you call the script.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

oli
Posts: 194
Joined: Wed 30 Aug 2006, 09:04
Location: Germany, Frankfurt

#6 Post by oli »

Thanks for your answers. Of course the filename is correct (I use the tabulator to complete the names of directories and filenames). And convert -resize is a valid command too. I used this command only as an example, my command in the shell-script uses -geometry and -quality. And this command works with Debian Bash-Shell without an error. The error must have another cause.

Here is the error-message with the -geometry option:

sh-3.00# convert -geometry 10% /mnt/hdc1/bilder/test.jpg /mnt/hdc1/bilder/test2.jpg
convert: no decode delegate for this image format `/mnt/hdc1/bilder/test.jpg'.
convert: missing an image filename `/mnt/hdc1/bilder/test2.jpg'.

I use puppy2.10r1 .

Do you have another idea?

Oli

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

you might try one of these dotpups, they work for me.
For example 6.2.3

sh-3.00# convert -geometry 10% 1.jpg test2.jpg
sh-3.00#

The 6.2.4 can not be uninstalled, I think I had used it before for tests.
Later installed 6.2.3, that overwrote 6.2.4.

http://dotpups.de/dotpups/Graphics/

Mark

oli
Posts: 194
Joined: Wed 30 Aug 2006, 09:04
Location: Germany, Frankfurt

#8 Post by oli »

I tried 6.2.4 and 6.2.3 too. But the error occur again. Therefore I decided to make a new dotpup of imagemagick, based on the stable version of Debian (imagemagick 6.0.6.2-2.7). Now everything seems to work. I posted this dotpup in the forum (additional software):

http://www.murga.org/~puppy/viewtopic.php?p=75371#75371

Oli

Post Reply