Search found 12584 matches

by snibgo
2020-01-25T17:06:43-07:00
Forum: Users
Topic: Changes on printing text over an image
Replies: 7
Views: 128

Re: Changes on printing text over an image

Which part of the script doesn't do what you want? I suppose draw_mvg.png isn't what you want. I don't see why it should work. It is drawn at 0,0, so it won't show. And you rotate it by -90 degrees about the (0,0) axis, so it is certainly outside the image. Try "rotate 90", ie 90 degrees clockwise, ...
by snibgo
2020-01-25T13:29:26-07:00
Forum: Digital Image Processing
Topic: rename images based on color of first pixel
Replies: 3
Views: 88

Re: rename images based on color of first pixel

setlocal enabledelayedexpansion for %%F in (*.jpg) do ( for /F "usebackq" %%A in (`magick ^ %%F ^ -depth 8 -format "ONECOL=%%[hex:p{0,0}]" ^ info:`) do set %%A echo ONECOL=!ONECOL! ren %%F %%~nF_!ONECOL!.jpg ) Do a backup first. If it doesn't do what you want, your filenames will be snarfed. The "e...
by snibgo
2020-01-25T10:42:21-07:00
Forum: Users
Topic: Replace colors conditionally by comparing two images?
Replies: 4
Views: 102

Re: Replace colors by comparing two images with a defined palette?

Yes, it is possible. Begin by breaking the problem into sub-problems. Do you now how to change one colour into another? How to change (0,255,255) into (255,128,128)?
by snibgo
2020-01-25T09:39:19-07:00
Forum: Users
Topic: Trying to colourise or combine through an alpha (mask)
Replies: 2
Views: 59

Re: Trying to colourise or combine through an alpha (mask)

The first step is to find the command that makes a red version of the pattern image in_pat.png, for the entire image. The input has black, and gray(50%), and anti-aliasing. You want to leave black unchanged, and gray(50%) to be changed to #ea0e0e, more or less. "-auto-level" stretches the values to ...
by snibgo
2020-01-25T09:18:00-07:00
Forum: Users
Topic: Virtual zoom effect?
Replies: 3
Views: 108

Re: Virtual zoom effect?

See also Animation with SRT, where I show Windows BAT commands to make frames that pan, zoom, scale and rotate to make simple animations from a single input photo.

Your goal is a single image, not an animation, but the process of making individual frames is the same.
by snibgo
2020-01-24T18:39:35-07:00
Forum: Users
Topic: Virtual zoom effect?
Replies: 3
Views: 108

Re: Virtual zoom effect?

What version of IM, on what platform? Suppose you have 101 images of stars, photographed over a couple of hours with the camera on a tripod. (Or you could cheat: do it from a single photo, duplicated 100 times, with rotations). For each frame, I would use "-distort SRT" with four parameters. See htt...
by snibgo
2020-01-24T06:09:59-07:00
Forum: Users
Topic: convert image to pdf
Replies: 1
Views: 41

Re: convert image to pdf

Your queston is too vague for an answer.

What version of IM, on what platform?

What is your input? What elements are missing?

I suggest you post a link to your input.
by snibgo
2020-01-24T04:46:42-07:00
Forum: Users
Topic: Overlapping images and swap
Replies: 2
Views: 57

Re: Overlapping images and swap

Swap images #0 and #2: convert \ red.png -alpha set -virtual-pixel transparent +distort affine '0,90 10,10 99,90 99,20' \ green.png -alpha set -virtual-pixel transparent +distort affine '0,90 10,10 99,90 99,20' \ blue.png -alpha set -virtual-pixel transparent \ -swap 0,2 \ -background transparent -l...
by snibgo
2020-01-24T03:30:14-07:00
Forum: Bugs
Topic: Issues with PNG conversion since 6.9 and 7.0
Replies: 1
Views: 35

Re: Issues with PNG conversion since 6.9 and 7.0

SchwarzeMagie81 wrote:convert.exe: eXIf: CRC error `E:\test.png'
That looks like a file corruption that wasn't caught by older versions of IM.

Please post a link to test.png.
by snibgo
2020-01-24T02:33:19-07:00
Forum: Users
Topic: Converting Between Color Profiles In ImageMagick Results in Different Colors Than GIMP
Replies: 2
Views: 67

Re: Converting Between Color Profiles In ImageMagick Results in Different Colors Than GIMP

zian wrote:... results in different colors than ImageMagick.
How different are they? What is the RMSE difference? What version of Gimp?

Bugs need to be reproducible. Please link to your input file and output files.
by snibgo
2020-01-23T17:18:56-07:00
Forum: Digital Image Processing
Topic: rename images based on color of first pixel
Replies: 3
Views: 88

Re: rename images based on color of first pixel

IM cannot rename files. It could read your input JPEGs and write new JPEGs with new names, but that would be a lossy process.

IM can find the hex code you want, and then you could use an operating system command to rename.
by snibgo
2020-01-22T12:55:58-07:00
Forum: Kudos and Rants
Topic: New User on Ubuntu
Replies: 4
Views: 135

Re: New User on Ubuntu

2. I typed >> input file.py I don't know what your "input" program is, or what it does. ImageMagick does have an "import" program, which will import an image from the screen and write it to the file you name, in this case "file.py". If that file already exists, it will be overwritten. See the docum...
by snibgo
2020-01-22T10:03:46-07:00
Forum: Users
Topic: Path generation with scripts
Replies: 2
Views: 107

Re: Path generation with scripts

ImageMagck can't write vector paths to JPEG files. It can only read them.

Gimp can write them.
by snibgo
2020-01-22T10:01:03-07:00
Forum: Kudos and Rants
Topic: New User on Ubuntu
Replies: 4
Views: 135

Re: New User on Ubuntu

ImageMagick is a general-purpose raster image processor. It takes raster images as input, and writes raster images as output. It also has some vector capabilities. It can also capture screens. It has a number of APIs (application program interfaces) including command-line, C, C++ and Python. I don't...
by snibgo
2020-01-21T20:48:09-07:00
Forum: Users
Topic: Crop Image Based on Edge Detection
Replies: 9
Views: 348

Re: Crop Image Based on Edge Detection

Images can't be posted to the forum. You can upload to anywhere on the internet, and paste the URLs here.