Can you explain the synthax? I'm trying it and I always get 0.snibgo wrote:For example:This returns 0 or 1 according to whether the minimum exceeds a threshold. It could be used in a script to do whatever you want.Code: Select all
convert x.jpg -format "%[fx:minima>0.25]" info:
Search found 42 matches
- 2014-01-31T06:10:54-07:00
- Forum: Users
- Topic: Normalize only extreme cases?
- Replies: 15
- Views: 13382
Re: Normalize only extreme cases?
- 2014-01-31T06:03:42-07:00
- Forum: Users
- Topic: Normalize only extreme cases?
- Replies: 15
- Views: 13382
Re: Normalize only extreme cases?
I will test it. Thanx. I had already figure out a silly way to do what I needed. This is my test script. It creates a histogram of the image and then crops the histogram to a txt file. The crop points to a low point to the left and to the right. So, if it's white, it means there's data and there's n...
- 2014-01-31T02:38:12-07:00
- Forum: Users
- Topic: Normalize only extreme cases?
- Replies: 15
- Views: 13382
Re: Normalize only extreme cases?
There must be a way to copy or move all images that, for instance, do not have any value from 0 to 50.
- 2014-01-30T10:44:23-07:00
- Forum: Users
- Topic: Normalize only extreme cases?
- Replies: 15
- Views: 13382
Normalize only extreme cases?
I know I can use the normalize command or contrast-stretch, etc. to correct the levels of all my images in a folder. However, I'd like that Imagemagick does not process all images, but only those that have severe problems of levels. I suppose there must be a way to make it analize the picture by gen...
- 2014-01-27T13:53:14-07:00
- Forum: Users
- Topic: Shadow / highlight
- Replies: 1
- Views: 2144
Shadow / highlight
Is there any command I can use with Imagemagick to do something like the shadow / highlight command under image adjustments in Photoshop? I have a script which runs Imagemagick with normalize to correct the levels of an image. However, sometimes I found images with dark areas without affecting the r...
- 2013-05-31T10:12:50-07:00
- Forum: Users
- Topic: How to create an animated .png from two images
- Replies: 6
- Views: 18209
Re: How to create an animated .png from two images
This is for a frontend program that doesn't accept animated gifs, only pngs. However, I still have to try if it accepts an animated png. I've just downloaded some from the web and I'll try tonight.
- 2013-05-31T04:03:32-07:00
- Forum: Users
- Topic: How to create an animated .png from two images
- Replies: 6
- Views: 18209
Re: How to create an animated .png from two images
Following a tutorial I've been able to convert the files to animated gif, but I don't know how to obtain an animated png. Any help?
convert z:\convert\folder1\pic.png z:\convert\folder2\pic.png -gravity south -set delay 300 z:\convert\output.gif
convert z:\convert\folder1\pic.png z:\convert\folder2\pic.png -gravity south -set delay 300 z:\convert\output.gif
- 2013-05-31T03:12:21-07:00
- Forum: Users
- Topic: How to create an animated .png from two images
- Replies: 6
- Views: 18209
How to create an animated .png from two images
Hi. I'd like to know if ImageMagick can be used to join two .pngs into an animated .png. The result would be an infinite cycle of both images with an interval of 5 seconds. Thanx in advance!
- 2012-05-27T00:26:28-07:00
- Forum: Users
- Topic: Mogrify and files with spaces in their names
- Replies: 0
- Views: 3583
Mogrify and files with spaces in their names
I', using mogrify from an Autohotkey script. I don't know where's the problem but it works fine, except with files which have spaces in their names. Any idea?
This is the command:
runwait, %impath%\mogrify.exe -path %output% -resize %resarea%@ -normalize -quality 95 %imageo% ,,hide
This is the command:
runwait, %impath%\mogrify.exe -path %output% -resize %resarea%@ -normalize -quality 95 %imageo% ,,hide
- 2012-03-15T01:59:00-07:00
- Forum: Users
- Topic: Can Imagemagick handle video (any alternative?)
- Replies: 1
- Views: 10416
Can Imagemagick handle video (any alternative?)
I wonder if Imagemagick is able to do video conversion and edition. I suppose it can't. I wonder if you know of any program that can be called from a script, using commands, like Imagemagick, but can convert several files with mov format to avi without quality loss and then resize to different outpu...
- 2012-01-23T09:40:17-07:00
- Forum: Users
- Topic: Add date to photos
- Replies: 2
- Views: 11309
Re: Add date to photos
Thankyou. What's the difference between that script and this one I've found? BTW, in this example, the modified files are stored in a different folder but the names are wrong and have no extension. How can I fix it? convert fotosin\*.jpg -font Arial -pointsize 32 -fill white -annotate +30+50 %[exif:...
- 2012-01-23T04:48:38-07:00
- Forum: Users
- Topic: Add date to photos
- Replies: 2
- Views: 11309
Add date to photos
Hello. Could you tell me how to add text in the bottom right corner of a series of jpgs indicating the date of the photo (the date in which it was taken, or the date in which the file was created). I'd like white small font, with a black outline. Is this possible? Thanx.
- 2011-12-30T03:58:47-07:00
- Forum: Users
- Topic: Print text on screen with arbitrary rotation
- Replies: 1
- Views: 4127
Print text on screen with arbitrary rotation
Hi. I'd like to know if this can be done with ImageMagick. I need to print on screen a short text, let's say a title with one or two lines, but with a specific degree of rotation, so that it appears over a .jpg, for instance on the picture of a man holding a piece of paper. I also have Autohotkey, i...
- 2011-06-24T14:20:44-07:00
- Forum: Users
- Topic: Display histogram
- Replies: 11
- Views: 40052
Re: Display histogram
The only problem I'm having with histograms is that the graphics are too flat in some images (when they have much contrast), almost unreadable sometimes. Notice the difference between the histogram in Photoshop (left) and Imagemagick (right) for the same image. There are cases in which you just see ...
- 2011-06-24T13:59:48-07:00
- Forum: Users
- Topic: Display histogram
- Replies: 11
- Views: 40052
Re: Display histogram
I'll try although I think this is more than enough for what I need:
convert 1.jpg -separate -append -define histogram:unique-colors=false histogram:MIFF:- | convert - -fill "#ddddff" -colorize 60% histogram1e.jpg
Thanks man.
convert 1.jpg -separate -append -define histogram:unique-colors=false histogram:MIFF:- | convert - -fill "#ddddff" -colorize 60% histogram1e.jpg
Thanks man.