Search found 591 matches

by GeeMack
2018-07-15T15:15:11-07:00
Forum: Bugs
Topic: IM7 Read Exception for specific size transparent PNG
Replies: 5
Views: 153

Re: IM7 Read Exception for specific size transparent PNG

Using the example image and testing with ImageMagick 7.0.8-6 Q16 HDRI from a Windows 10 command line, I get no warnings or errors.
by GeeMack
2018-07-06T09:34:01-07:00
Forum: Users
Topic: image rotate black background transparent not working.
Replies: 6
Views: 351

Re: image rotate black background transparent not working.

This works great but the image is resized need to matain the same size Maybe you'd do better to use "-distort" instead of "-rotate". Try something like this... convert input.jpg -set alpha -background none -virtual-pixel none -distort SRT 75 output.png That keeps the same dimensions as the input im...
by GeeMack
2018-06-30T10:44:54-07:00
Forum: Users
Topic: Does something like this exist?
Replies: 9
Views: 490

Re: Does something like this exist?

For example, if i were to apply a 50% black threshold to the color (50, 200, 200) it changes it to (0, 200, 200). How could I make it so that if any of the channels are below 50%, then set color to (0, 0, 0)? First, you need to describe what you're doing by posting some actual examples of your scri...
by GeeMack
2018-06-30T08:17:49-07:00
Forum: Users
Topic: Trim image and output trim amount
Replies: 3
Views: 223

Re: Trim image and output trim amount

Allows to get me the untrimmed image's center within the newly trimmed image. You can also get the trim information without actually doing the trim with a command like this... magick input.png -set page %[@] output.png If the output format supports it, like PNG and TIF, the paging information of th...
by GeeMack
2018-06-29T22:19:09-07:00
Forum: Users
Topic: Does something like this exist?
Replies: 9
Views: 490

Re: Does something like this exist?

Actually for this specific project, I am able to narrow it down ahead of time to the box around the text, aka can count on the fact that nothing in the background will be brighter/whiter/lighter? than the text i wish to OCR From the Windows command line you can try something like this with your exa...
by GeeMack
2018-06-27T22:19:23-07:00
Forum: Users
Topic: Hi guy, anyone else here?
Replies: 2
Views: 283

Re: Hi guy, anyone else here?

I read on the tutorial that I can use the clone command, but I don't know how to use it in this case. With your version you can use multiple instances of "( +clone )" as fmw42 suggested. Another approach is to expand the viewport to 30 times the width of the input image, tile the input into that vi...
by GeeMack
2018-06-25T10:54:06-07:00
Forum: Users
Topic: Crop & Rotate
Replies: 9
Views: 536

Re: Crop & Rotate

I want to save the new file with an appended as "-Modified.jpg" just not sure of the syntax. ImageMagick can hold the input file name as a variable to use as part of the output file name. Try something like this... magick input.jpg -set filename:f "%[t]-Modified" <do some other things here> "%[file...
by GeeMack
2018-06-22T15:11:44-07:00
Forum: Users
Topic: Compositing thousands of images
Replies: 11
Views: 1038

Re: Compositing thousands of images

Thank you - that worked nicely and was very easy to implement! The only challenge i have is that some of the images i'll be creating involve an insane number of these smaller images (250,000 to be exact) and while this new code does work it takes a rather long time. I don't know much about managing...
by GeeMack
2018-06-22T09:17:02-07:00
Forum: Users
Topic: Need help?
Replies: 2
Views: 294

Re: Need help?

Is such a thing possible? Has it already been done? You need to provide a lot more information, like what version of IM you're using, what platform you're working on, whether you're running it from a command line or script or whatever. Provide some examples of things you've already tried. Read the ...
by GeeMack
2018-06-20T22:12:52-07:00
Forum: Users
Topic: Compositing thousands of images
Replies: 11
Views: 1038

Re: Compositing thousands of images

I have full control over the script that creates the txt file so this can be changed in any way (e.g. if we needed to have a name for the image instead of a path etc). With the option to write the list of input images any way you want, you might consider doing something like snibgo 's suggestion ab...
by GeeMack
2018-06-20T09:05:22-07:00
Forum: Users
Topic: Compositing thousands of images
Replies: 11
Views: 1038

Re: Compositing thousands of images

I'm wanting to read in the small image filepath from this txt file as well (which i can do no problem) but as it's the same 5 images that get used over and over again Im thinking they can be instantiated once and then reused (as per Point 8 on https://stackoverflow.com/questions/28704984/how-to-spe...
by GeeMack
2018-06-19T15:50:49-07:00
Forum: Users
Topic: determining the pixel aspect ratio of a TIFF
Replies: 9
Views: 732

Re: determining the pixel aspect ratio of a TIFF

I just tried that and sure enough, the AR is not 1. Thanks, I'll use this method for now. This should give you both X and Y resolutions... magick input.tif -format "%[fx:resolution.x] %[fx:resolution.y]" info: You can use those FX expressions in a calculation to get the aspect... magick input.tif -...
by GeeMack
2018-06-13T14:37:34-07:00
Forum: Bugs
Topic: Problem with hue shift using "-modulate" with IM7.0.7-39
Replies: 3
Views: 598

Re: Problem with hue shift using "-modulate" with IM7.0.7-39

This issue appears to be fixed in the new IM version 7.0.8-0. Thanks!
by GeeMack
2018-06-13T09:43:22-07:00
Forum: Bugs
Topic: Issue with stroke and label: text - IM 7.0.7-39 and 6.9.9-50
Replies: 2
Views: 561

Issue with stroke and label: text - IM 7.0.7-39 and 6.9.9-50

Using ImageMagick 7.0.7-39 Q16 HDRI x64 and ImageMagick 6.9.9-50 Q16 HDRI x64 (and several previous versions of each), and running this command from a Windows 10 command line... magick -pointsize 100 -strokewidth 10 -stroke black -font arial label:"TESTING 1 2 3" badstroke1.png This is the result......
by GeeMack
2018-06-11T12:01:56-07:00
Forum: Bugs
Topic: Problem with hue shift using "-modulate" with IM7.0.7-39
Replies: 3
Views: 598

Problem with hue shift using "-modulate" with IM7.0.7-39

Using IM 7.0.7-39 Q16 x64 HDRI from a Windows 10 command line, this command generates the image below. magick -size 4x200 xc:red -duplicate 199 -modulate 100,100,%[fx:t] +append modhue.png https://www.dropbox.com/s/i2y2bsh0wpxmvji/modhue.png?raw=1 Those 200 images appended should show a continuous s...