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

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
IanDMac
Posts: 7
Joined: 2013-12-26T18:33:29-07:00
Authentication code: 6789

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

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
IanDMac
Posts: 7
Joined: 2013-12-26T18:33:29-07:00
Authentication code: 6789

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

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo »

If you put your gif files somewhere like dropbox.com and paste the links here, someone might take a look.
snibgo's IM pages: im.snibgo.com
IanDMac
Posts: 7
Joined: 2013-12-26T18:33:29-07:00
Authentication code: 6789

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

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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
snibgo's IM pages: im.snibgo.com
IanDMac
Posts: 7
Joined: 2013-12-26T18:33:29-07:00
Authentication code: 6789

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

Post 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?
Post Reply