How to append pages using Title, date, page and secton

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
clbring2172
Posts: 4
Joined: 2016-05-17T07:21:41-07:00
Authentication code: 1151

How to append pages using Title, date, page and secton

Post by clbring2172 »

Hello,

I am pretty new to ImageMagick and am running into something I am having trouble figuring out. I am trying to merge together 3 different single page files into 1 single page file. I am semi successful with the appending of the files but the page and section numbers don't always match up like they should.

I am working on a rhel platform and have ImageMagick-6.7.8.9-10.el7.x86_64 installed.

here is an example of my code:

convert "$librarypath""$(basename "$file" | cut -d. -f1)".png "$proofpath""$(basename "$file" | cut -d. -f1)".png "$rootdirectory""$workingdirectory""$comparedirectory""$campaignflag"/"$(basename "$file" | cut -d. -f1)"_diff.png +append "$rootdirectory""$outputdirectory""$campaignflag"/"$(basename "$file" | cut -d. -f1)"_compare_file.png

here are some file examples:

./EOB_Proofing_Process/ImageProcess/Process/Proof/EOB/Proof_SPFile8_05182016_69_page6.png
./EOB_Proofing_Process/ImageProcess/Process/Compare/EOB/SPFile8_05182016_69_page6_diff.png
./EOB_Proofing_Process/ImageProcess/Library/EOB/Library_SPFile8_05182016_69_page6.png

Any help with this would be greatly appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to append pages using Title, date, page and secton

Post by fmw42 »

Please post code that has actual values and filenames in it and links to your image. The above make it very hard to understand what you are doing and we are not able to get to your images.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to append pages using Title, date, page and secton

Post by Bonzo »

As fmw42 says it is very hard to read your code as is. I would start with static filenames of files in the same folder as the code. This way you will reduce the chance of any errors in the image paths. You can then expand on it when your have the basic Imagemagick code working.
clbring2172
Posts: 4
Joined: 2016-05-17T07:21:41-07:00
Authentication code: 1151

Re: How to append pages using Title, date, page and secton

Post by clbring2172 »

Hello,

Here is the static code:

convert ./EOB_Proofing_Process/ImageProcess/Library/EOB/SPFile8_05182016_69_page6.png ./EOB_Proofing_Process/ImageProcess/Process/Proof/EOB/SPFile8_05182016_69_page6.png ./EOB_Proofing_Process/ImageProcess/Process/Compare/EOB/SPFile8_05182016_69_page6_diff.png +append ./EOB_Proofing_Process/ImageProcess/Output/EOB/SPFile8_05182016_69_page6_compare_file.pdf

Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to append pages using Title, date, page and secton

Post by fmw42 »

Thanks for the simple code, but we need to access your images to test. Can you upload them to some free hosting service such as dropbox.com and put the URLs here
Post Reply