Search found 608 matches

by GeeMack
2018-08-20T08:04:17-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 375

Re: extracting biggest square from a rotated image

manit wrote:
2018-08-20T07:11:35-07:00
But in such cases also i have observed a white triangle in corner of image .
The command you've been using works perfectly. The sample image you provided has a 32 pixel high strip of white along the bottom edge. That's what makes the white triangle in your output.
by GeeMack
2018-08-17T11:46:29-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 375

Re: extracting biggest square from a rotated image

manit wrote:
2018-08-17T06:08:09-07:00
... there was triangular cut in all four corners . see https://ibb.co/gkjVtK
Looks like you rotated your image 45 degrees, but the calculation in your command is for a square rotated 15 degrees.
by GeeMack
2018-08-16T09:20:33-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 375

Re: extracting biggest square from a rotated image

$ file f0001_01.png f0001_01.png: PNG image data, 512 x 512, 8-bit grayscale, non-interlaced $ convert f0001_01.png -rotate 15 -set option:leg "%[fx:512/(cos(15*(pi/180))+sin(15*(pi/180)))]" -set option:distort:viewport "%[leg]x%[leg]" \( -clone 0 -distort srt 0 \) -gravity center +swap -composite ...
by GeeMack
2018-08-15T08:42:52-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 375

Re: extracting biggest square from a rotated image

Let's say my 512x512 image is a fingerprint. How can I pass that image as input to bash command you have mentioned ? As long as your input image is square, you can just put its name in the command where I used "-size ${squ}x${squ} xc:green" in my example, and where I used the variable "${squ}" to c...
by GeeMack
2018-08-14T18:06:14-07:00
Forum: Users
Topic: Resize Image with restrictions
Replies: 4
Views: 138

Re: Resize Image with restrictions

Did someone have an idea on how to match the customer need? Using ImageMagick 6 it can be done with a command like this... convert input.jpg \ -set option:distort:scale "%[fx:max((w>h?3000:2000)/w,(w>h?2000:3000)/h)]" \ -distort SRT 0 output6.jpg It can be done with a simpler command if you're usin...
by GeeMack
2018-08-14T15:11:17-07:00
Forum: Bugs
Topic: Problem with -swirl, -wave, -implode v7.0.8-9
Replies: 2
Views: 126

Re: Problem with -swirl, -wave, -implode v7.0.8-9

This issue appears to be resolved in version 7.0.8-10. Thanks!
by GeeMack
2018-08-14T15:09:44-07:00
Forum: Bugs
Topic: Problem reading memory register "mpr:test[0,0,0,0]"...
Replies: 2
Views: 141

Re: Problem reading memory register "mpr:test[0,0,0,0]"...

This issue appears to be resolved in version 7.0.8-10. Thanks!
by GeeMack
2018-08-13T07:29:16-07:00
Forum: Users
Topic: Command to Mogrify png images created or modified after a certain date only?
Replies: 6
Views: 169

Re: Command to Mogrify png images created or modified after a certain date only?

So there's no way to select only today's images for example? You'll have to use one of your system utilities like "find" to locate the files that meet your criteria. Redirect the output of the "find" command to a text file to use as your list of files to process. Then you can read that text file in...
by GeeMack
2018-08-12T08:23:51-07:00
Forum: Users
Topic: extracting biggest square from a rotated image
Replies: 18
Views: 375

Re: extracting biggest square from a rotated image

Now my aim is to cut out biggest black square from this rotated image . How can I do that ? Using IM 6.8.9 from a bash shell I can cut out the largest square from a larger rotated square with a command like this... squ=853 deg=33 convert -size ${squ}x${squ} xc:green -rotate ${deg} \ -set option:leg...
by GeeMack
2018-08-11T14:06:38-07:00
Forum: Users
Topic: Using montage to highlight only one image in array
Replies: 7
Views: 194

Re: Using montage to highlight only one image in array

My question is how can I highlight or frame or identify just one of the four images? For example, let's say I want to show that the correct image on this array is two.png. So I want to someone draw the viewer's attention to just this one piece of the array. In another version of the montage it migh...
by GeeMack
2018-08-08T21:21:21-07:00
Forum: Bugs
Topic: Problem with -swirl, -wave, -implode v7.0.8-9
Replies: 2
Views: 126

Problem with -swirl, -wave, -implode v7.0.8-9

Using ImageMagick 7.0.8-9 Q16 x64 HDRI from a Windows 10 command line, these commands result in no change to the "logo:"... magick logo: -implode 0.5 test1.png magick logo: -swirl 180 test2.png This command only adds 12 pixels of background to the bottom of "logo:" but doesn't apply any wave distort...
by GeeMack
2018-08-07T12:07:11-07:00
Forum: Bugs
Topic: Problem reading memory register "mpr:test[0,0,0,0]"...
Replies: 2
Views: 141

Problem reading memory register "mpr:test[0,0,0,0]"...

Running ImageMagick 7.0.8-9 Q16 x64 HDRI from a Windows 10 command line. This command generates four output images ("info:" in this example), all copies of the first index "0" in the memory register "mpr:test"... magick rose: granite: -write mpr:test -delete 0--1 mpr:test[0,0,0,0] info: ... as shown...
by GeeMack
2018-08-06T07:12:07-07:00
Forum: Users
Topic: [SOLVED] How to extend image borders
Replies: 3
Views: 207

Re: How to extend image borders

Lecram wrote:
2018-08-05T23:33:16-07:00
Your solution worked for me right after I replaced the x with a comma in the SRT part.
Yep, that was a mistake on my part. I've edited my post to fix it. Glad it worked for you.
by GeeMack
2018-08-05T15:26:07-07:00
Forum: Users
Topic: [SOLVED] How to extend image borders
Replies: 3
Views: 207

Re: How to extend image borders

is it possible to extend the outermost pixels of an image the same way OpenGL's GL_CLAMP_TO_EDGE does it? The edges of an image may be extended like your example by using -distort SRT and -virtual-pixel edge . An example running IM7 from a Windows command line might look like this... magick input.p...
by GeeMack
2018-08-05T15:06:26-07:00
Forum: Users
Topic: Distorting image using liquid-rescale
Replies: 2
Views: 150

Re: Distorting image using liquid-rescale

Hello! I am a complete novice to ImageMagick. My main purpose of using it is for a telegram bot that distorts images. (A bot does exists but its not open source.) I would want to know how to get result similar to these - https://imgur.com/a/20EQYKe A very similar effect can be achieved using ImageM...