Search found 2972 matches

by Bonzo
2007-06-11T14:13:41-07:00
Forum: Users
Topic: Trying to replace certain colors
Replies: 3
Views: 9100

Re: Trying to replace certain colors

If using php I would try this ( from an old post http://redux.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8015&hilit=change+color ) <?php exec("/usr/local/bin/convert original.jpg -fill rgb\(255,0,0\) -opaque rgb\(170,170,170\) output.jpg"); ?> -fill is the new colour and ...
by Bonzo
2007-06-11T05:27:23-07:00
Forum: Users
Topic: Transparencies from the command line
Replies: 4
Views: 10177

Re: Transparencies from the command line

Something like this: http://www.rubblewebs.co.uk/imagemagick ... adiant.png

You could setup a form and read the input into a variable; then use the variable in the mask. There may be another way to do it but that seems simple to me.
by Bonzo
2007-06-05T14:23:14-07:00
Forum: Users
Topic: Blend images with gradient.
Replies: 8
Views: 23250

Re: Blend images with gradient.

There is an example near the bottom of this page:
http://www.imagemagick.org/Usage/compose/
by Bonzo
2007-06-04T13:39:20-07:00
Forum: Users
Topic: How to make an small image invisible inside a large image
Replies: 7
Views: 18352

Re: How to make an small image invisible inside a large image

You want -stegano, there is some info on this page http://www.imagemagick.org/script/command-line-options.php?#stegano BUT I think it is hard to view the image - need an X11 server ? Also if you are using it as an invisible watermark to prove the image is yours and the person who uses your image cut...
by Bonzo
2007-06-01T02:25:59-07:00
Forum: Users
Topic: convert to background
Replies: 3
Views: 10490

Re: convert to background

How about doing something like this: http://www.rubblewebs.co.uk/imagemagick ... o=blue.jpg

This is overlaying a plain blue image over a photo and "blending" it. You could overlay a white image over your grayscale one ?
by Bonzo
2007-05-31T07:24:32-07:00
Forum: Users
Topic: newbe transparent layer question
Replies: 1
Views: 7375

Re: newbe transparent layer question

Remember jpg does not use transparency so if any area is to stay transparent you will need to save it as a png or gif.

Code: Select all

composite -gravity center transparent.gif photo.jpg result.jpg
by Bonzo
2007-05-30T11:04:48-07:00
Forum: Users
Topic: Convert : unable to open image... invalid argument. (beginne
Replies: 11
Views: 36082

Re: Convert : unable to open image... invalid argument. (beginne

I am glad you got it working in the end :D
by Bonzo
2007-05-29T13:16:22-07:00
Forum: Users
Topic: Convert : unable to open image... invalid argument. (beginne
Replies: 11
Views: 36082

Re: Convert : unable to open image... invalid argument. (beginne

You are not doing what I wrote; this is what you should be seeing:
http://www.rubblewebs.co.uk/TESTS/kostina.php

Replace the filenames on this line with your filenames: convert image.jpg -resize 50x50 output.gif
by Bonzo
2007-05-29T11:54:25-07:00
Forum: Users
Topic: Convert : unable to open image... invalid argument. (beginne
Replies: 11
Views: 36082

Re: Convert : unable to open image... invalid argument. (beginne

How are you running your code ? I was using the command prompt screen.

cd \

cd Program Files\ImageMagick-6.3.4-Q16\images

convert image.jpg -resize 50x50 output.gif

Should create an image called output.gif from image.jpg in the folder C:\Program Files\ImageMagick-6.3.4-Q16\images
by Bonzo
2007-05-29T11:15:41-07:00
Forum: Users
Topic: Convert : unable to open image... invalid argument. (beginne
Replies: 11
Views: 36082

Re: Convert : unable to open image... invalid argument. (beginne

This works for me: 1/ Open Command prompt. 2/ Using cd directory name get to the directory with the original image in - in my case I went cd \ to take me back to the root. Then after the c:\ prompt cd Documents and Settings\Barney\My Documents You can look at image properties to find the path you ne...
by Bonzo
2007-05-29T08:54:38-07:00
Forum: Users
Topic: Convert : unable to open image... invalid argument. (beginne
Replies: 11
Views: 36082

Re: Convert : unable to open image... invalid argument. (beginne

I have not used windows but assume you will need the full path to the image not the relative path. Something like c:\folder name\image.jpg and the same for saving it. Also you use image: for the built in images not your images. convert c:\folder name\myPhoto.jpg ( +clone -channel R -fx G ) +swap -ch...
by Bonzo
2007-05-23T14:39:15-07:00
Forum: Users
Topic: DICOM convert problem
Replies: 7
Views: 19613

Re: DICOM convert problem

by Bonzo
2007-05-23T14:28:37-07:00
Forum: Users
Topic: DICOM convert problem
Replies: 7
Views: 19613

Re: DICOM convert problem

A typing error as you do not have an original file extension ?

Code: Select all

$image_details = `convert dicom_tests\IM3.dicom dicom_tests\IM3_convert.png`;
by Bonzo
2007-04-09T12:04:01-07:00
Forum: Users
Topic: Mosaic two pngs, one without and one with alpha
Replies: 10
Views: 21737

Re: Mosaic two pngs, one without and one with alpha

That is strange !

I am using Version: ImageMagick 6.2.8 06/10/06 Q16

I am afraid that I have no idea apart from give composite a try:

Code: Select all

exec("composite final.png NW20Vq1.png shadow_test.png");
by Bonzo
2007-04-09T11:47:20-07:00
Forum: Users
Topic: Mosaic two pngs, one without and one with alpha
Replies: 10
Views: 21737

Re: Mosaic two pngs, one without and one with alpha

My original image was boots_layer_2.png and I used php to run the code <?php // This creates the shadow exec("convert boots_layer_2.png -background black -shadow 80x3+5+5 final.png "); // This puts the original image on top of the shadow exec("convert final.png -composite boots_layer_...