Awesome, works great!
Thank you!!!
Search found 8 matches
- 2016-10-24T06:29:29-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
- 2016-10-21T11:37:24-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Re: Crop image from pdf
Thanks for all your help fmw42! This seems to do the job. The only thing that needed to be changed from the code above was line 8 from: if [ "$color" = "srgb(100%,100%,100%)" ]; then to: if [ "$color" = "srgb(100.001%,100.001%,100.001%)" ] || [ "$color" = "srgb(100.002%,100.002%,100.002%)" ]; then ...
- 2016-10-17T07:21:37-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Re: Crop image from pdf
Thanks, I got this error when trying to run the code:
convert: invalid argument for option '-crop': @ error/convert.c/ConvertImageCommand/1215.
I also noticed that (echo "$bbox") did not echo anything which is probably the reason for this error
convert: invalid argument for option '-crop': @ error/convert.c/ConvertImageCommand/1215.
I also noticed that (echo "$bbox") did not echo anything which is probably the reason for this error
- 2016-10-12T16:40:08-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Re: Crop image from pdf
Thanks, I upgraded IM to the latest version (7.0.3-4) and it fixed the issue.
The code you posted worked great for the boston.pdf but cropped the wrong area for the other two.
The code you posted worked great for the boston.pdf but cropped the wrong area for the other two.
- 2016-10-12T06:38:41-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Re: Crop image from pdf
I am getting this error when I run the code you provided:
convert.im6: unrecognized option `-connected-components' @ error/convert.c/ConvertImageCommand/1107
Any ideas why?
convert.im6: unrecognized option `-connected-components' @ error/convert.c/ConvertImageCommand/1107
Any ideas why?
- 2016-10-11T13:21:30-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Re: Crop image from pdf
Thanks, fmw42 and snibgo I was able to crop the image properly in python! However, I ran into a problem as I tested more and more PDFs - Not all of the them have the same format. Some of them are 2 pages and the logo area is not always the same size Here are 3 PDFs I was having trouble with: https ...
- 2016-10-11T06:50:43-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Re: Crop image from pdf
Awesome, the solution above gives me the end result I was looking for! Now is there a way to do the same thing using python instead of the command line? I currently have imagemagick (Version: 8:6.7.7.10-6ubuntu3.1) installed. Package: imagemagick Status: install ok installed Priority: optional ...
- 2016-10-10T13:07:23-07:00
- Forum: Users
- Topic: Crop image from pdf
- Replies: 17
- Views: 17477
Crop image from pdf
Hello! I am trying to crop an image from a pdf and want to figure out the best way to do so. PDF1: https://drive.google.com/open?id=0B1r4dpYUN5npT1lPdU9OUG1XMGM PDF2: https://drive.google.com/open?id=0B1r4dpYUN5npVzVsNmRpTGhJbW8 How could I crop out the logo (with the best quality possible) and ...