Search found 36 matches

by jauson
2018-09-12T10:36:39-07:00
Forum: Users
Topic: How to rotate pdf and undo rotating? Gives unexpected results.
Replies: 24
Views: 20240

How to rotate pdf and undo rotating? Gives unexpected results.

https://www.dropbox.com/sh/0w7fv0iucs6rvk2/AAB2ZDvcRZaW1Jl2ZLkdeG34a?dl=0 Rotate 5 degrees: convert -density 288 cross.pdf -colorspace sRGB +repage -virtual-pixel White -distort SRT '5' -alpha remove rotate-pdf-1-5deg-out.pdf Rotates the image Rotate -5 degrees output with same command as above on t...
by jauson
2017-12-08T14:25:08-07:00
Forum: Users
Topic: Create a big image croping top and bottom of pdf
Replies: 12
Views: 8167

Re: Create a big image croping top and bottom of pdf

Just discovered page ranges...

Code: Select all

convert -density 144  my.pdf[1-10] -roll +0+200 -extent 0x400 -roll +0+200 -append output_roll.png
by jauson
2017-12-07T22:30:43-07:00
Forum: Users
Topic: Create a big image croping top and bottom of pdf
Replies: 12
Views: 8167

Re: Create a big image croping top and bottom of pdf

I think the last one works well. thanks.
by jauson
2017-12-07T21:34:45-07:00
Forum: Users
Topic: Create a big image croping top and bottom of pdf
Replies: 12
Views: 8167

Re: Create a big image croping top and bottom of pdf

Version: ImageMagick 6.9.9-10

I was hoping to avoid scripts. Can this be done nativly with IM.
by jauson
2017-12-07T20:29:11-07:00
Forum: Users
Topic: Create a big image croping top and bottom of pdf
Replies: 12
Views: 8167

Re: Create a big image croping top and bottom of pdf

IM 6.9, OS linux/windows.
by jauson
2017-12-07T20:05:40-07:00
Forum: Users
Topic: Create a big image croping top and bottom of pdf
Replies: 12
Views: 8167

Create a big image croping top and bottom of pdf

I have a pdf with multiple pages, I want to take a top crop, and bottom crop, and make one big image of all of them combined vertically. convert \ \( -density 144 my.pdf -gravity north -crop x200+0+0 +repage -colorspace gray -alpha remove \) \ \( -density 144 my.pdf -gravity south -crop x200+0+0 +re...
by jauson
2017-11-15T15:38:08-07:00
Forum: Users
Topic: convert pdf to pdf produces huge pdf
Replies: 8
Views: 14936

Re: convert pdf to pdf produces huge pdf

I'm trying to do this in a single command using pipes, but I'm not sure if its setting the format properly. After this command, i use another program to process this pdf and it says unsupported image type. it's a java program, throwing this error: Caused by: javax.imageio.IIOException: Unsupported I...
by jauson
2017-11-15T12:57:01-07:00
Forum: Users
Topic: convert pdf to pdf produces huge pdf
Replies: 8
Views: 14936

Re: convert pdf to pdf produces huge pdf

convert TestThis.pdf -compress JPEG -quality 80 TestThis-converted.pdf

JPEG works, but it made the file even bigger
by jauson
2017-11-15T12:45:24-07:00
Forum: Users
Topic: convert pdf to pdf produces huge pdf
Replies: 8
Views: 14936

Re: convert pdf to pdf produces huge pdf

convert TestThis.pdf -compress JPG -quality 80 TestThis-converted.pdf
convert.exe: unrecognized image compression `JPG' @ error/convert.c/ConvertImageCommand/1119.
by jauson
2017-11-15T12:17:24-07:00
Forum: Users
Topic: convert pdf to pdf produces huge pdf
Replies: 8
Views: 14936

convert pdf to pdf produces huge pdf

I'm trying to fatten a pdf and have good quality. My command is: convert -density 288 input.pdf output.pdf My pdf of 5 megs becomes 130 megs. It's 6 pages, but they are full of color and images. If I run this GS command on it, it shrinks it down to 930k. gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVI...
by jauson
2017-09-13T15:30:36-07:00
Forum: Users
Topic: Rotate pdf page 45 degrees, weird rotation and white space in results
Replies: 3
Views: 3877

Re: Rotate pdf page 45 degrees, weird rotation and white space in results

i believe the +repage did the trick. thank you.
by jauson
2017-09-13T13:38:24-07:00
Forum: Users
Topic: Rotate pdf page 45 degrees, weird rotation and white space in results
Replies: 3
Views: 3877

Rotate pdf page 45 degrees, weird rotation and white space in results

I'm trying to rotate a pdf page by (some degrees) 45 degrees for example, and saving it back to pdf, and the result is creating weird white spacing and moving it off page inside the pdf result, if I save the output as png it works as expected. Version: ImageMagick 6.9.9-10 Q16 x64 2017-08-27 Code wi...
by jauson
2016-12-07T19:44:49-07:00
Forum: Users
Topic: crop empty space around images
Replies: 3
Views: 105218

Re: crop empty space around images

I had an issue with a png having a slight bit of transparency, which resulted in removing the transparency part, and leaving the white areas. To fix it, first I had to flatten, then trim.

Code: Select all

convert partial-trans.png -flatten -fuzz 1% -trim +repage trimmed.jpg
by jauson
2015-06-14T02:24:31-07:00
Forum: Users
Topic: Stop image from resizing when adding shadow [solved]
Replies: 8
Views: 5393

Re: Stop image from resizing when adding shadow

How are you running the command? Your syntax is bash. Do you use Cygwin? Anyhow, the problem is simply that you ask for a shadow that will extend beyond the background image, so the result is larger. The cure is to make a smaller shadow, or crop, or use "-layers flatten" instead of "...
by jauson
2015-06-14T01:22:49-07:00
Forum: Users
Topic: Stop image from resizing when adding shadow [solved]
Replies: 8
Views: 5393

Re: Stop image from resizing when adding shadow

I updated the original post with the images used. I understand the reason why the black area is there, it's a jpg image. Using Version: ImageMagick 6.9.0-10 Q16 x64. Windows 8.1. Will get the black area. convert \ -size 600x400 xc:blue \ \( rose: -set page +258+349 \) \ \( +clone -background gray5 -...