Search found 308 matches

by VanGog
2012-02-11T07:27:31-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

Well, I am testing your script but it takes some time. First I forgot to add the quality option to your IM script so I'm running it again. I don't understand what you mean by that Photoshop has not such low quality. Photoshop saves in 12 levels of quality for JPEG and I can use 4/12 to save in so ca...
by VanGog
2012-02-11T04:39:29-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

Hello and thank you much for good answer. I will try your command but now will answer your question. "I have many images (*.pdf) that originally do not have margin." I use maps that have no margin or the margin is very little. I read it in Acrobat Reader. But when I run the IM convertion s...
by VanGog
2012-02-10T12:48:47-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

Well, there are *.pdf and *.jpg. After convert saves them as *.pdf.jpg and I don't know how to change save it with different extension. Probably when the *.pdf.jpg is created it is then next input to the program. But how to change the command to save the file with different ext.?
by VanGog
2012-02-10T12:21:39-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

I've finished the code to Win/DOS batch but I got many errors, and only 8 files successfully converted. Any idea where could be problem? for /r %%F in (*.pdf) do ^ "c:\program files\ImageMagick-6.7.5-Q8\convert.exe" -density 400 -shave 30%%x30%% -quality 34%% %%F %%F.jpg **** Warning: File...
by VanGog
2012-02-06T02:10:18-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

I tried several commands for batch file so simplify my work, but still not success. Now just the simple shave command: for /r %%x in (*.pdf) do ^ convert -density 400 -shave "30%x30%" -quality 34%% "%%x" "%%x.jpg" Tells me that the geometry is not contained in image. In...
by VanGog
2012-02-05T17:52:13-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

newwidth and newheight are variables? I cannot use them because DOS/cmd.exe does not recognized them as command. Are you sure your syntax near ` is correct? Should not be closed ``? In the first try -shave 15%x15% results in program's thinking that %x is variable but -shave 15% x 15% results in thin...
by VanGog
2012-02-05T05:02:32-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

Re: How to crop margin in imagemagick?

Could you please tell me how can I calculate the size from percentage of with and percentage of height?

When I use for first image -shave 1600x1600 so it is too much for other images. So I would need to calculate 15% of the width and 15% of the height to get it to -shave
by VanGog
2012-02-05T03:36:20-07:00
Forum: Users
Topic: How to crop margin in imagemagick?
Replies: 24
Views: 60668

How to crop margin in imagemagick?

Hello, am new to IM and trying to solve this. I have many images (*.pdf) that originally do not have margin. The files are in various sizes but usually from 8000x4000 to 20000x14000 px. I use this command to convert them to jpeg: for /r %x in (*.pdf) do convert -density 400 -quality 100% "%x&qu...