Result from isn't comprehensible for me

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
derilzemer
Posts: 21
Joined: 2011-12-12T12:18:16-07:00
Authentication code: 8675308

Result from isn't comprehensible for me

Post by derilzemer »

Hi @ all,
hope you understand my english because it isn't so good, sorry for that.
Month ago i become help from the froum. Now i have a new trouble on my work as a card collector. I have different scan fomer plates.
Everthing works fine only one special former plate makes me crazy. Here you can find different results with different former paltes and the correct scans an there converting http://derilzemer.de. Every picture are also cut as a single picture and the result looks fine. Following the scriptlines who makes the convert from the scans. Of course the measurements depends on the former plate!

echo " convert $aktiv_dir/$aktiv_file -crop 1x1\@ +repage -bordercolor black -border 1 -resize 750x -fuzz 80% -fill none -draw \"matte 0,0 fl
echo " convert $aktiv_dir/$aktiv_file -crop 2x2\@ +repage -bordercolor black -border 1 -fuzz 95% -trim +repage -resize 250x $aktiv_dir/${date
echo " convert $aktiv_dir/${datei_name}_*.png -bordercolor black -border 1 -fuzz 80% -fill none -draw \"matte 0,0 floodfill\" -trim +repage $
echo " convert $aktiv_dir/${datei_name}_*.png -resize 50% $aktiv_dir/t_${datei_name}_%d.png" >>doit.sh
echo " convert $aktiv_dir/${datei_name}.png -resize 275x $aktiv_dir/t_${datei_name}.png" >>doit.sh

But the special former plate gives me results like this and i cant understand what happens http://derilzemer.de/problem.htm
First step from the script, resize and cut from the hole picture seems okay http://derilzemer.de/step1. But after finishing the complete sequence it looks no so pretty :( http://derilzemer.de/step2. Can anywhere tell me what happens? Thanks for all the hints

regards from Germany
Andreas
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Result from isn't comprehensible for me

Post by snibgo »

Some echoes are sent to doit.sh and some aren't.

Can you tell us exactly what command went wrong, and what the input and output images were?
snibgo's IM pages: im.snibgo.com
derilzemer
Posts: 21
Joined: 2011-12-12T12:18:16-07:00
Authentication code: 8675308

Re: Result from isn't comprehensible for me

Post by derilzemer »

Hi,
Some echoes are sent to doit.sh and some aren't.
Thats okay because the script send all the doing to the script doit.sh. That runs after the converts are done.
Can you tell us exactly what command went wrong, and what the input and output images were?
Input files are jpeg, output files are png. No commands went wrong respectively i can't see wrong commands. The script run succesfully like they run for the other former plates. Only the result is total different :( .

Regards Andreas
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Result from isn't comprehensible for me

Post by snibgo »

Your commands are incomplete. The ends have been chopped off.

Exactly what commands created the result you don't like? Please give us the URLs of the input and output files.
snibgo's IM pages: im.snibgo.com
derilzemer
Posts: 21
Joined: 2011-12-12T12:18:16-07:00
Authentication code: 8675308

Re: Result from isn't comprehensible for me

Post by derilzemer »

Hi,
okay sorry i doesn't see the breaks in the first post

Code: Select all

 echo " convert $aktiv_dir/$aktiv_file -crop 1x1\@ +repage -bordercolor black -border 1 -resize 750x -fuzz 80% -fill none -draw \"matte 0,0  floodfill\" -trim +repage $aktiv_dir/${datei_name}.png" >>doit.sh
echo " convert $aktiv_dir/$aktiv_file -crop 2x1\@ +repage -bordercolor black -border 2 -fuzz 95% -trim +repage -resize 250x365  $aktiv_dir/${datei_name}_%d.png" >>doit.sh
echo " convert $aktiv_dir/${datei_name}_*.png -bordercolor black -border 1 -fuzz 80% -fill none -draw \"matte 0,0 floodfill\" -trim +repage $aktiv_dir/${datei_name}_%d.png" >>doit.sh
echo " convert $aktiv_dir/${datei_name}_*.png -resize 50% $aktiv_dir/t_${datei_name}_%d.png" >>doit.sh
echo " convert $aktiv_dir/${datei_name}.png -resize 50% $aktiv_dir/t_${datei_name}.png" >>doit.sh
               fi
           done
Okay input files are jpeg http://derilzemer.de/problem.htm output png.
Result from the first echo is okay, http://derilzemer.de/step1.htm, but in the second step

Code: Select all

(echo " convert $aktiv_dir/$aktiv_file -crop 2x1\.....)
there is the problem http://derilzemer.de/step2.htm. Hope i understood now what you mean, sorry for that.

Regards Andreas
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Result from isn't comprehensible for me

Post by snibgo »

convert $aktiv_dir/$aktiv_file -crop 2x1\@ +repage -bordercolor black -border 2 -fuzz 95% -trim +repage -resize 250x365 $aktiv_dir/${datei_name}_%d.png
This assumes the cards can be split by dividing the image evenly in two, which is not true. The image (750_1970_1.jpg) is 750 pixels wide. The column at 375 is within the card on the left.
snibgo's IM pages: im.snibgo.com
derilzemer
Posts: 21
Joined: 2011-12-12T12:18:16-07:00
Authentication code: 8675308

Re: Result from isn't comprehensible for me

Post by derilzemer »

Hi,
that's the reason why. Thanks for the hint.
regards from Germany
Andreas
Post Reply