Page 1 of 1

Result from isn't comprehensible for me

Posted: 2013-11-24T06:38:06-07:00
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

Re: Result from isn't comprehensible for me

Posted: 2013-11-24T11:55:18-07:00
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?

Re: Result from isn't comprehensible for me

Posted: 2013-11-24T13:45:12-07:00
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

Re: Result from isn't comprehensible for me

Posted: 2013-11-24T14:17:14-07:00
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.

Re: Result from isn't comprehensible for me

Posted: 2013-11-25T08:26:11-07:00
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

Re: Result from isn't comprehensible for me

Posted: 2013-11-25T09:58:29-07:00
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.

Re: Result from isn't comprehensible for me

Posted: 2013-11-25T14:18:17-07:00
by derilzemer
Hi,
that's the reason why. Thanks for the hint.
regards from Germany
Andreas