Search found 528 matches

by GeeMack
2018-02-14T11:49:47-07:00
Forum: Users
Topic: Large image tiling with specific filename format output
Replies: 5
Views: 84

Re: Large image tiling with specific filename format output

Hence the tiles filename depict their coordinate on the tile map. As well as hint to their 2D dimension. If the tile images are saved as PNGs, they can still contain the original image size and offset information. ImageMagick can use that to reconstruct all or part of the original image. A simple c...
by GeeMack
2018-02-14T10:39:59-07:00
Forum: Users
Topic: Large image tiling with specific filename format output
Replies: 5
Views: 84

Re: Large image tiling with specific filename format output

Hence the tiles filename depict their coordinate on the tile map. As well as hint to their 2D dimension. You can crop an image into tiles and save the output images with filenames that indicate their dimensions and the offsets of their original locations. A command like this should get you started....
by GeeMack
2018-02-08T19:33:52-07:00
Forum: Users
Topic: Cropping all four sides differently
Replies: 6
Views: 195

Re: Cropping all four sides differently

Is it possible to crop 15px from the right side, 5 px from top, 25 from bottom and 10 from the left side? I use a SP3000 scanner and it leaves mask on all four side, i would like to do a batch job. You can make a Windows BAT script that uses one ImageMagick command to do the calculations and reset ...
by GeeMack
2018-02-04T10:10:30-07:00
Forum: Users
Topic: Is it possible to dynamically calculate the required rotation angle while processing an image?
Replies: 14
Views: 715

Re: Is it possible to dynamically calculate the required rotation angle while processing an image?

I have now switched to IM7. I am using ImageMagick 7.0.7-22 Q16 x86_64. However, I am still perplexed how to perform the calculation. Take a look at this example command... magick -background none -density 300 "$file" \ -bordercolor none -border 1x1 -trim +repage \ "$wmark" \ -rotate "%[fx:t*(atan(...
by GeeMack
2018-01-31T22:22:51-07:00
Forum: Users
Topic: Need help
Replies: 2
Views: 172

Re: Need help

Now, i am happy with the result apart from one thing, and it's the opacity of the shadow. How do i make the shadow less translucent? The blur amount is correct so it's not a matter of decreasing the blur (which of course will increase the opacity but transform the shadow into a normal text contour)...
by GeeMack
2018-01-31T19:43:07-07:00
Forum: Developers
Topic: Crop to an aspect ratio with "-crop 3:2"
Replies: 9
Views: 699

Re: Crop to an aspect ratio with "-crop 3:2"

An auto option such as -define crop:aspect=auto, seems possible, I think, by simply cropping with the larger of W:H along the largest dimension of the image. Although I have not give that much thought or prototyped it yet. My "real" programming skills aren't top notch, but I keep a stash of IM comm...
by GeeMack
2018-01-31T17:51:59-07:00
Forum: Developers
Topic: Crop to an aspect ratio with "-crop 3:2"
Replies: 9
Views: 699

Re: Crop to an aspect ratio with "-crop 3:2"

1) Are you asking for a -define or new geometry flag that would crop 3:2 relative to the largest dimension of the image, such that it would automatically handle landscape or portrait mode images (rather than the user specifying 3:2 vs 2:3)? The default appears to crop the largest W:H area without r...
by GeeMack
2018-01-31T13:02:57-07:00
Forum: Developers
Topic: Crop to an aspect ratio with "-crop 3:2"
Replies: 9
Views: 699

Crop to an aspect ratio with "-crop 3:2"

The announcement about the new mode of cropping to an aspect ratio with "-crop 3:2" looks extremely useful. I have a couple suggestions. First, I noticed that specifying an aspect with "-extent 3:2" also produces the same sort of proportional cropping. Maybe a flag could be added to instruct "-exten...
by GeeMack
2018-01-31T12:17:29-07:00
Forum: Users
Topic: loop merge side by side jpgs in Cygwin
Replies: 1
Views: 150

Re: loop merge side by side jpgs in Cygwin

I have (say one) folder with jpg images (scans of books), and would like to merge them side by side, like a "dual reading mode), so a1.jpg will be merged with a2.jpg a3.jpg will be merged with a4.jpg etc. Every Linux, Cygwin, *nix flavor should have the tools "ls" and "sed". You can use "ls" piped ...
by GeeMack
2018-01-29T21:32:11-07:00
Forum: Users
Topic: Convert images from Windows Batch script
Replies: 3
Views: 239

Re: Convert images from Windows Batch script

I would like to automate so that all images are automatically resized to have this proportion of 3:2 (it should cut off equally in top/bottom or left/right when cropping). Not sure if Imagemagick can figure out whether it is supposed to be an portrait image (height > width) or landscape image (widt...
by GeeMack
2018-01-23T18:31:30-07:00
Forum: Users
Topic: How to calculate the rotation angle for an overlying image, so that it just fits diagonally iniside an underlying image?
Replies: 4
Views: 390

Re: How to calculate the rotation angle for an overlying image, so that it just fits diagonally iniside an underlying im

I had already calculated the diagonal of the underlying image and then the corresponding angle. The problem is that the length is not necessarily maximized, as seen here . If the angle of the overlay will be variable, the only way you can be sure to maximize it to both width and height is to change...
by GeeMack
2018-01-23T12:54:49-07:00
Forum: Users
Topic: How to calculate the rotation angle for an overlying image, so that it just fits diagonally iniside an underlying image?
Replies: 4
Views: 390

Re: How to calculate the rotation angle for an overlying image, so that it just fits diagonally iniside an underlying im

I am very sure that this problem has already been solved somewhere in the forum, but could not find anything up to now. This question was answered near the end of this thread . A single ImageMagick command will do it. See my response in that other thread or to your question at StackOverflow for a m...
by GeeMack
2018-01-22T19:12:57-07:00
Forum: Bugs
Topic: Possible problem with TIFF:- IM7.0.7-21 and Windows
Replies: 2
Views: 489

Re: Possible problem with TIFF:- IM7.0.7-21 and Windows

This issue still exists in ImageMagick 7.0.7-22 Q16 x64 HDRI on Windows 10.
by GeeMack
2018-01-22T17:50:15-07:00
Forum: Bugs
Topic: IM 6.9.9-33 - Windows 10 - odd error message
Replies: 12
Views: 759

Re: IM 6.9.9-33 - Windows 10 - odd error message

Except that the computation isn't done then. The page is merely set to a string, and the string isn't expanded until it is needed. It seems the need for the calculation might be eliminated by resetting the paging for that one image inside the parentheses using one of these methods, but they all gen...
by GeeMack
2018-01-22T14:12:50-07:00
Forum: Bugs
Topic: IM 6.9.9-33 - Windows 10 - odd error message
Replies: 12
Views: 759

Re: IM 6.9.9-33 - Windows 10 - odd error message

I don't understand the mystery. Within the parentheses, the number of images is one. So n=1, and n-1=0, so there is a divide by zero. This is evaluated only if needed, such as when the output is a PNG. The error message is a bit weird, I assume because IM has tokenised the expression, and is de-tok...