Page 1 of 1

Old Spell no longer works convert -page, to make collage

Posted: 2013-12-26T18:47:29-07:00
by IanDMac
I've just come back to an old spell, I use to make a vertical collage of images with. I am now using ImageMagick 6.8.6-3 2013-06-25 Q16 I'm not sure which version I use to use :( however the spell I cast no longer works.

convert -page 300 -background #8CC63F ^
-page +0+0620 "DSCF5276_borderAndTitleAndSpun.gif" ^
-page +0+0280 "DSCF5283.C_borderAndTitleAndSpun.gif" ^
-page +0+0000 "DSCF4982_borderAndTitleAndSpun.gif" ^
-mosaic joined0.gif

What has changed and how do I fix it?
--
Cheers Ian Mac


PS
I have attempted to download the latest version, ImageMagick-6.8.8-0-Q16-x64-dll.exe however that pops up a box saying "The setup files are corrupted. Please obtain a new copy of the program." I have downloaded it three times but I get the same failure each time.

Re: Old Spell no longer works convert -page, to make collag

Posted: 2013-12-26T19:05:24-07:00
by snibgo
I don't know what "-page 300" used to do. It doesn't seem to be a documented usage. See http://www.imagemagick.org/script/comma ... s.php#page

I have just installed the static (not dll) version of v6.8.8-0 on Windows7, and it went fine.

What doesn't work with your command? A simplified version:

Code: Select all

convert ^
  -background green ^
  -page +10+10 xc:white ^
  -page +5+20 xc:black ^
  -mosaic ^
  m.png
... works for me.

Re: Old Spell no longer works convert -page, to make collag

Posted: 2013-12-27T03:04:15-07:00
by IanDMac
Thank you for your quick reply, your spell works for me as well, so I conclude that the problem is that the gifs which I have produced are the problem. These where also produced by ImageMagick earlier in the script. I'm not sure what to look at now, think I will try making .png type files instead and see if the behaviour is different.

Re: Old Spell no longer works convert -page, to make collag

Posted: 2013-12-27T03:27:02-07:00
by snibgo
If you put your gif files somewhere like dropbox.com and paste the links here, someone might take a look.

Re: Old Spell no longer works convert -page, to make collag

Posted: 2013-12-27T08:41:19-07:00
by IanDMac
Tried producing png type files no different, still fails, something very odd going on :(
I have placed the files I use in the following place https://www.dropbox.com/sh/bopp6m1zgt0x5ld/fFVj4j0HhJ There are the three source files and two output files one which I produced originally (joined.gif) using 6.7.4 I think. This working output file has five images in it I have remed the last two out of the script to save time. then the result of my current script (compressImages2010Q2.cmd) which made the failing output file (joined0.gif) with the images on top of each other.

I believe the -page 300 was shorthand for -page +300x+300 it still appears to work.

Re: Old Spell no longer works convert -page, to make collag

Posted: 2013-12-27T09:16:34-07:00
by snibgo
I don't use page and repage much so I'm not an expert on how these operations have changed. I think this does what you want:

Code: Select all

%IM%convert -background #8CC63F ^
  "DSCF5276_borderAndTitleAndSpun.gif" -repage +0+0620 ^
  ( "DSCF5283.C_borderAndTitleAndSpun.gif" -repage +0+0280 ) ^
  ( "DSCF4982_borderAndTitleAndSpun.gif" -repage +0+0000 ) ^
  -mosaic joined2.gif

Re: Old Spell no longer works convert -page, to make collag

Posted: 2013-12-27T10:47:30-07:00
by IanDMac
Thanks Snibgo, that spell does in deed do the business, and produces what I require. Now I have a solution, I think its time to RFM yet again and see why the old method no longer works and why the new method does works. Was it a bug, or a feature, or a simple accident?