Search found 754 matches

by GeeMack
2020-04-07T21:48:49-07:00
Forum: Users
Topic: Squaring images.
Replies: 30
Views: 73577

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: 5
Views: 487

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: 8603

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: 823

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: 649

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: 807

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: 1010

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: 1010

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: 805

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: 1319

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: 6556

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: 1447

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...
by GeeMack
2020-02-27T10:17:30-07:00
Forum: Users
Topic: Generating mockup of picture from image
Replies: 4
Views: 1319

Re: Generating mockup of picture from image

Hi there, is there any way to generate a mockup of a picture on this kind of template? (if i have a picture i would like to generate the mockup for a frame canvas in 3d and a poster) like thiese images That sort of thing can be done with ImageMagick, often with just a single – but maybe quite compl...
by GeeMack
2020-02-25T11:51:29-07:00
Forum: Users
Topic: Reversing a film strip
Replies: 4
Views: 1128

Re: Reversing a film strip

I have an old filmstrip that has 65 frames, with a size of 60x55 px each (so the total file dimensions are 60x3575). I would like to crop the first 33 frames and then reverse the order of the frames in that sequence. There are several ways to accomplish this with ImageMagick. If you want to reverse...
by GeeMack
2020-02-22T23:08:33-07:00
Forum: Users
Topic: How to add One Picture ontop of the other
Replies: 4
Views: 1097

Re: How to add One Picture ontop of the other

I Wouldn't mind cropping the poster top by 100px then adding the header bar to the top of the poster resulting in 1000x1500. To make the little rounded corners transparent you'll need to set the background color to "none". See if a command like this gets you close to what you want... convert header...