Search found 735 matches

by GeeMack
2016-01-19T07:07:33-07:00
Forum: Users
Topic: Scaling and Converting a .png to .jpg
Replies: 2
Views: 2807

Re: Scaling and Converting a .png to .jpg

I take a .png with a transparent background, fill the background with a new color, resize the image and convert it to a .jpg. This gives me the following command in IM: convert -resize 800x1200 -background #000000 -alpha Background -quality 100% src.png dest.jpg Using IM 6.9.3-1 Q16 x64 on Windows ...
by GeeMack
2016-01-18T19:05:58-07:00
Forum: Users
Topic: how do I make a multi resolution .ico file?
Replies: 18
Views: 38135

Re: how do I make a multi resolution .ico file?

I wrote a rigorous way around this last year, but it slows the scripts right down. Instead I find it easier to update all my scripts at once after I install a new version of IM... I keep two working versions of ImageMagick on my Windows 7 64 machine, the current Windows binary release version 6.X.X...
by GeeMack
2016-01-18T08:17:09-07:00
Forum: Users
Topic: Help to fix error "unbalanced parenthesis"
Replies: 3
Views: 3752

Re: Help to fix error "unbalanced parenthesis"

How in one exec command to compose a frame and to get result.png? It might be easier to understand what your code is doing if you bring the "image.png" in first. Then after it's in the working stack, build your dotted line rectangle inside the parentheses. At that point you have two images in the s...
by GeeMack
2016-01-17T19:46:20-07:00
Forum: Users
Topic: how do I make a multi resolution .ico file?
Replies: 18
Views: 38135

Re: how do I make a multi resolution .ico file?

Hope this helps anyone looking to achieve this with some level of automation :D Using "IM 6.9.2-8 Q16 x64" or "IM 7.0.0-0 Q16 x64 2016-01-09" and Windows 7 Pro 64, this can be done with a batch file like this without creating the intermediate files... @echo off setlocal set IMDIR=c:\Program Files\I...
by GeeMack
2016-01-14T10:03:12-07:00
Forum: Bugs
Topic: Possible bug with -interword-spacing in IM7
Replies: 4
Views: 3897

Possible bug with -interword-spacing in IM7

There seems to be a problem with the "-interword-spacing" operator in my current version of IM7 under Windows 7 Pro 64. Below are some commands to compare. (Note: I have it set up so when I run the "convert" command on my system it uses my IM6, and when I run "magick" it uses my IM7.) Using this "co...
by GeeMack
2016-01-13T21:44:46-07:00
Forum: Users
Topic: Convert JPEG to BMP
Replies: 12
Views: 10390

Re: Convert JPEG to BMP

Invalid Parameter - -resize That would be an error message from the Windows convert command. See if you have the IM convert command somewhere in your path by typing this at the command line... where convert If none of the output lines show the ImageMagick convert command, that means it's not in you...
by GeeMack
2016-01-12T19:15:51-07:00
Forum: Users
Topic: identify JPEG2000
Replies: 11
Views: 7799

Re: identify JPEG2000

I believe that dlemstra just gave you the link to the patch that you would need to edit and recompile IM. If you got Imagemagick 7 from the Imagemagick web site betas, it probably does not yet have that patch compiled into it. dlemstra can correct me, if I am wrong. I always download pre-compiled v...
by GeeMack
2016-01-12T18:52:44-07:00
Forum: Users
Topic: identify JPEG2000
Replies: 11
Views: 7799

Re: identify JPEG2000

I get the same "0B" result when testing on various JP2 image files using IM7 version "ImageMagick 7.0.0-0 Q16 x64 2016-01-02".
by GeeMack
2016-01-08T11:33:37-07:00
Forum: Users
Topic: Brick wall
Replies: 5
Views: 4292

Re: Brick wall

I have a photo from which I'd like to extract the lines from the bricks. As fmw42 said, the original image is pretty poorly defined, so there's not much that can be done with it. If you want to isolate the mortar lines you could try changing it to just two shades of gray, force those to just black ...
by GeeMack
2016-01-07T13:06:23-07:00
Forum: Users
Topic: Running convert from bat file
Replies: 4
Views: 4299

Re: Running convert from bat file

I would like to create some mp4 videos from webcam images I take every 15mins. That's how I would like to do it (works fine when I run the commands manually in cmd). convert *.JPG -delay 10 -morph 10 %05d.morphed.jpg ffmpeg -r 25 -i %05d.morphed.jpg video.mp4 The idea was to run these two commands ...
by GeeMack
2016-01-06T11:21:34-07:00
Forum: Users
Topic: Saving all dimension information to a file
Replies: 3
Views: 2848

Re: Saving all dimension information to a file

I want save all information of the dimensions of all jpg's in a directory (including sub-directories). This seem to work: FOR /R %f IN (*.jpg) DO identify "%f" -size 1920x1080 using standard output like this: FOR /R %f IN (*.jpg) DO identify "%f" -size 1920x1080 > \dimensions.txt creates the file d...
by GeeMack
2016-01-05T08:50:49-07:00
Forum: Users
Topic: Why can't I set label geometry when not appending it to another element/image?
Replies: 5
Views: 3796

Re: Why can't I set label geometry when not appending it to another element/image?

Thanks for the '-annotate' setting. Substituting the 'label:' command for a correctly-formed '-annotate' command doesn't work, however. I think '-annotate' only works when you're annotating an image: I'm making an image rather than overlaying a label on a pre-existing one. (I know I could do it the...
by GeeMack
2016-01-02T22:54:28-07:00
Forum: Developers
Topic: Density escape values in FX expressions?
Replies: 3
Views: 4595

Re: Density escape values in FX expressions?

try using resolution.x and resolution.y rather than x and y I was looking at that page earlier and apparently was thinking I'd find what I wanted in the single letter symbols. Yep, I overlooked the perfect answer just a few lines later. That does exactly what I was looking for. Thanks much for your...
by GeeMack
2016-01-02T22:27:51-07:00
Forum: Developers
Topic: Density escape values in FX expressions?
Replies: 3
Views: 4595

Density escape values in FX expressions?

Using ImageMagick 7.0.0-0 Q16 x64 2015-12-19 from the command line and batch files in Windows 7 Pro 64. I'm building some scripts to make various labels to print with finished sizes and crop marks in inches and fractions. I'd like to calculate some dimensions in my IM7 commands using the resolution,...
by GeeMack
2016-01-02T07:37:53-07:00
Forum: Users
Topic: How to draw text from file on an existing image
Replies: 2
Views: 5167

Re: How to draw text from file on an existing image

I want to draw text from file.txt on my existing picture pic.jpg. I do know only how to draw text, which is in the command itself, but not from text file or with variables. Why? The picture is a webcam picture. and the text, that should be on the image is in a text file. Who gives me the working hi...