Page 1 of 1

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

Posted: 2016-05-20T14:34:45-07:00
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.

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

Posted: 2016-05-20T16:23:44-07:00
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.

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

Posted: 2016-05-21T00:50:24-07:00
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.

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

Posted: 2016-05-23T09:16:18-07:00
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.

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

Posted: 2016-05-23T11:18:58-07:00
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