Search found 757 matches

by GeeMack
2020-05-21T13:25:42-07:00
Forum: Kudos and Rants
Topic: Final Satellite imagery using ImageMagick
Replies: 4
Views: 2134

Re: Final Satellite imagery using ImageMagick

Just wanted to share the final product after using ImageMagick to resize, compress, watermark, time annotate, create and animates gif, and then FFmpeg to interpolate the gif frames into a .mp4 GOES -16 Satellite 348 separate frames, from April 5 to April 11, 2020. This one took a while to process, ...
by GeeMack
2020-04-11T18:09:18-07:00
Forum: Users
Topic: Batch Crop image if Width Greater Than X Pixels - Windows
Replies: 1
Views: 845

Re: Batch Crop image if Width Greater Than X Pixels - Windows

I have batch code, pieced together from posts I have found here and elsewhere, that will crop the right-side of all photos in all sub-directories....but I cannot figure out how to add in an IF statement or something similar with Batch / ImageMagick that will only perform this operation if the width...
by GeeMack
2020-04-10T08:47:32-07:00
Forum: Users
Topic: How to catch the width, height and the geometry of an object
Replies: 5
Views: 1231

Re: How to catch the width, height and the geometry of an object

Is there a way to get the width/height and the geometry coordinates of the red square? This will give you the width, height, and geometry of whatever would be the results of a "-trim" operation. In your example image that would be the red square... convert input.png -format "%[@]\n" info: These dim...
by GeeMack
2020-04-07T21:48:49-07:00
Forum: Users
Topic: Squaring images.
Replies: 30
Views: 77241

Re: Squaring images.

You need exiftool for this to work. Depending on your workflow, keep in mind ImageMagick can pad any input image to square, including doing the calculations, without exiftool, and in a single command. Here's an example... convert "$1" -set filename:f "%[f]" -virtual-pixel none -background none \ -s...
by GeeMack
2020-03-27T14:02:00-07:00
Forum: Bugs
Topic: vertical stripes in a resized image
Replies: 9
Views: 2492

Re: vertical stripes in a resized image

I'm using IM 7.0.10-2 Q16 x64 HDRI static that I get from ftp.imagemagick.org/pub/ImageMagick/binaries/. Running CLI on Windows 10 and testing both sample images with both filters, the outputs don't show that distortion for me.
by GeeMack
2020-03-16T09:36:37-07:00
Forum: Bugs
Topic: Error image read from windows clipboard (copy from chrome)
Replies: 15
Views: 11208

Re: Error image read from windows clipboard (copy from chrome)

Testing an old, possibly related Windows clipboard concern with today's release, ImageMagick 7.0.10-1 Q16 x64 HDRI. The issue described at THIS link still exists.
by GeeMack
2020-03-15T09:32:07-07:00
Forum: Users
Topic: Trimming and keeping the aspect ratio
Replies: 4
Views: 1640

Re: Trimming and keeping the aspect ratio

So basically what I want to do is trimming an image but keep its aspect ratio... is that possible using imagemagick and without setting custom values for each image? To give you the best answers we need to know what version of ImageMagick you're using and which OS you're running on. Maybe post some...
by GeeMack
2020-03-13T09:22:00-07:00
Forum: Users
Topic: Help with background and centering
Replies: 2
Views: 1220

Re: Help with background and centering

I am trying to create a 800x600 image. Background be gray. Paste in.png in the center. You can create a gray canvas and composite your image onto it as fmw42 suggested. You can also use "-extent" to expand the canvas of the input image to your desired dimensions. Try this... convert in.png -backgro...
by GeeMack
2020-03-12T15:31:23-07:00
Forum: Users
Topic: ImageMagick fails to recognize non-default fonts on Windows 10
Replies: 3
Views: 1463

Re: ImageMagick fails to recognize non-default fonts on Windows 10

After installing new fonts using this method, [...] will display all the newly added fonts. I will frequently just use the actual font file itself. It doesn't even have to be installed. convert -font my_favorite_font.ttf -pointsize 24 label:"ABC123" out.png I keep particular font files in folders w...
by GeeMack
2020-03-10T18:39:00-07:00
Forum: Users
Topic: Crate meander or snake style montage
Replies: 5
Views: 1701

Re: Crate meander or snake style montage

Wow thanks! That's exactly what I was searching for! There are often several approaches to achieve the same result with ImageMagick. Here is another command that does the same thing. It uses "-clone" to re-order the input images, and "-append" to assemble them into a grid... convert *.bmp \( -clone...
by GeeMack
2020-03-09T20:22:05-07:00
Forum: Users
Topic: Crate meander or snake style montage
Replies: 5
Views: 1701

Re: Crate meander or snake style montage

I've been trying to combine multiple images a microscope took of steel samples into a montage. The files are not ordered left-to-right in every line, but switch between ltr and rtl like so: You can arrange the images into the correct order in a shell script or by renaming the files as snibgo and fm...
by GeeMack
2020-03-08T12:05:48-07:00
Forum: Users
Topic: Cut image into grid with filenames corresponding to positions
Replies: 3
Views: 1328

Re: Cut image into grid with filenames corresponding to positions

magick photo.jpg -crop 160x135 -set filename:ypos "%[fx:page.x/160]" -set filename:xpos "%[fx:page.y/135]" 'tiles/%[filename:xpos].%[filename:ypos].jpg' Actually worked, so yeah, thank you! I also used convert, because the docs in the same use case used it. You can even set the entire filename in a...
by GeeMack
2020-03-05T10:25:30-07:00
Forum: Users
Topic: Generating mockup of picture from image
Replies: 4
Views: 1963

Re: Generating mockup of picture from image

What about the last image? The poster version seen from an angled view? Again, this is just a concept command. You'll have to tweak several details to get exactly what you need. convert logo: -background none -bordercolor tan \ -border 16 -bordercolor none -border 32 -shear -45x-10 \ \( +clone -fil...
by GeeMack
2020-03-05T07:49:41-07:00
Forum: Users
Topic: Watermarking with Text.
Replies: 14
Views: 7943

Re: Watermarking with Text.

modia wrote:
2020-03-05T00:58:53-07:00
I am using windows cmd to run the above code...
For Windows you'll need to remove all those backslashes "\" that escape parentheses. Make these "\(" and "\)" into these "(" and ")".
by GeeMack
2020-03-02T20:37:35-07:00
Forum: Users
Topic: How to double the dimensions of images as long as they don't go above 192X192?
Replies: 9
Views: 2318

Re: How to double the dimensions of images as long as they don't go above 192X192?

My question is, is there a way to double the size of all images less than or equal to 96X96, so that all of the images are less than or equal to 192X192 afterwards? Re-scaling can be done with pretty basic ImageMagick commands. You should be able to use a "for" loop in a script to run an IM command...