Search found 12163 matches
- 2013-04-12T14:11:05-07:00
- Forum: Developers
- Topic: Positioning images using FX calcs
- Replies: 8
- Views: 8195
Re: Positioning images using FX calcs
Step 1: Resize the first image to fit in a 100x100 box. Call the result, for example, new_first.png. Step 2: My code shows how to get the actual size of new_first.png. Step 3: Resize the second image and composite the two resized images together. If you are concerned about speed, DOS script is slow....
- 2013-04-12T13:11:39-07:00
- Forum: Developers
- Topic: Positioning images using FX calcs
- Replies: 8
- Views: 8195
Re: Positioning images using FX calcs
I think this must be done in three stages. 1. Resize first file. 2. Find new dimensions of that file, each multiplied by 0.25. FOR /F "tokens=1,2" %%i in ('identify -format "%%[fx:w*0.25] %%[fx:h*0.25]" new_first.png') DO ( set NEWWI=%%i set NEWHT=%%j ) 3. Resize the second file ...
- 2013-04-12T06:54:33-07:00
- Forum: Users
- Topic: Just apply a transparent gradient
- Replies: 5
- Views: 6398
Re: Just apply a transparent gradient
What I want with my gradient (which is from white to grey)... It isn't. You are probably using a viewer that shows transparent pixels as white. In your gradient command, "none" means "transparent black". I'm confused about what you want. Do you want any transparency in the output?
- 2013-04-12T03:25:41-07:00
- Forum: Digital Image Processing
- Topic: Colorspace for easy color difference comparisons
- Replies: 4
- Views: 13567
Re: Colorspace for easy color difference comparisons
A very thorough site related to this topic: http://www.handprint.com/LS/CVS/color.html
- 2013-04-11T16:53:56-07:00
- Forum: Developers
- Topic: Positioning images using FX calcs
- Replies: 8
- Views: 8195
Re: Positioning images using FX calcs
I'm not clear what you are doing. What commands do you use currently?
In Windows, I generally find image dimensions like this:
In Windows, I generally find image dimensions like this:
Code: Select all
FOR /F "tokens=1,2" %%i IN ('identify -ping -format "%%w %%h" image.png') DO (
set WIDTH=%%i
set HEIGHT=%%j
)
- 2013-04-11T16:41:31-07:00
- Forum: Users
- Topic: Just apply a transparent gradient
- Replies: 5
- Views: 6398
Re: Just apply a transparent gradient
Your third command should be something like ...
... which will copy the transparency from gradient.png.
However, your images are not the same size, so you might want to adjust.
Code: Select all
convert blue.png gradient.png -compose CopyOpacity -composite output.png
However, your images are not the same size, so you might want to adjust.
- 2013-04-11T01:45:20-07:00
- Forum: Users
- Topic: cr2 php problem
- Replies: 4
- Views: 7007
Re: cr2 php problem
Code: Select all
convert IMG_6968.CR2 IMG_6968.jpg
sh: 1: ufraw-batch: not found
- 2013-04-11T00:16:50-07:00
- Forum: Users
- Topic: cr2 php problem
- Replies: 4
- Views: 7007
Re: cr2 php problem
Your IM version is very old, so your version of dcraw (which reads the CR2 file) is probably also very old.
I suppose PHP doesn't report errors. Try it from the command line:
What happens?
I suppose PHP doesn't report errors. Try it from the command line:
Code: Select all
convert IMG_6968.CR2 x.jpg
- 2013-04-10T15:24:26-07:00
- Forum: Users
- Topic: Downsample JPEG to 72x72
- Replies: 3
- Views: 10545
Re: Downsample JPEG to 72x72
This should do the job:
Code: Select all
convert in.jpg -resize 1100x600! -density 72 out.jpg
- 2013-04-10T12:22:59-07:00
- Forum: Bugs
- Topic: Problem rotate to .png
- Replies: 4
- Views: 4038
Re: Problem rotate to .png
You can use "+repage":
Code: Select all
convert.exe tmp3.png -rotate 30 +repage rotate.png
- 2013-04-10T09:41:31-07:00
- Forum: Developers
- Topic: Problem converting png to bmp
- Replies: 3
- Views: 13674
Re: Problem converting png to bmp
Your "-depth 24" is wrong, unless you have a non-standard version of IM that can process 24 bit per channel per pixel.
You might try the BMP2 and BMP3 formats:
You might try the BMP2 and BMP3 formats:
Code: Select all
convert alarm.png BMP2:alarm2.bmp
convert alarm.png BMP3:alarm3.bmp
- 2013-04-09T16:58:02-07:00
- Forum: Users
- Topic: scanned paper pdfs and original image extraction.
- Replies: 10
- Views: 14886
Re: scanned paper pdfs and original image extraction.
I know nothing about pdfimages.
In my limited use of PDF or PS documents, using IM as a wrapper to gs is sufficient for my needs. If it wasn't, I would learn gs.
In my limited use of PDF or PS documents, using IM as a wrapper to gs is sufficient for my needs. If it wasn't, I would learn gs.
- 2013-04-08T20:51:07-07:00
- Forum: Bugs
- Topic: grayscale RMS
- Replies: 2
- Views: 2836
grayscale RMS
http://www.imagemagick.org/script/command-line-options.php#grayscale says the formula for "-colorspace gray" is "(R'^2 + G'^2 + B'^2) / 3.0". I trust that is incorrect, and the formula is really "sqrt ((R'^2 + G'^2 + B'^2) / 3.0)". If the documentation is correct, then ...
- 2013-04-08T10:00:52-07:00
- Forum: Users
- Topic: scanned paper pdfs and original image extraction.
- Replies: 10
- Views: 14886
Re: scanned paper pdfs and original image extraction.
The required incantation for this file is "-density 300".
Code: Select all
convert -density 300 "2011 CAFR Introductory Section.pdf" ma.png
- 2013-04-08T09:49:19-07:00
- Forum: Users
- Topic: fullscreen
- Replies: 5
- Views: 13323
Re: fullscreen
Many years ago, I made a captive slideshow using AS (ActionScript) under Windows. The logged-in user had no capability to do anything else.