imagemagick

imagemagick convert command equivalent for iphone

Hi all, I have no experience with imageMagick, it is a very powerfull library. One question. How can i convert the command line example that uses command line "Convert" command to the iphone version ? I mean, i do not know what command to use instead of convert command Thanks to all ...

When using image magick to process .gif,the smaller one still looks unsharpened,why?

Seems this issue doesn't exist for .jpg images, any reason for this? Original: Output: ...

Image processing - one frame is washed out, other isn't. How to 'fix'?

I have the following 2 consequative, unaltered frames from a video: For some reason the camera made the 2nd much 'washed out' than the first. I want to make the 2nd look more like the 1st. In the video I'm trying to process, there are lots of cases like this, where the 'exposure' changes suddenly from one frame to the next. I am abl...

Image Magick watermark problem (upgrade 6.5.1 -> 6.5.7)

We recently upgraded our version of image magick from 6.5.1 to 6.5.7 (via karmic->lucid ubuntu upgrade). One of the commands we rely on is resizing an image and then placing it on top of another image: composite -gravity 'Center' -resize '304x202!' watermark.png -size '320x213' base.jpg result.jpg In this example we are expecting a r...

PNG black background transparent images Ruby on Rails application

Hello, I am currently running a Ruby on Rails application with Imagemagick and Paperclip and have a problem with PNG transparent images. They show with a black background and I'd like to know how to do to make that background show white. I found some resources but unfortunately only in PHP. Would be great if you could share with me a so...

Doing the same as ImageMagick's "-level" in python / PIL ?

I want to adjust the colour levels of an image in python. I can use any python library that can easily be installed on my Ubuntu desktop. I want to do the same as ImageMagick's -level ( http://www.imagemagick.org/www/command-line-options.html#level ). PIL (Python Image Library) doesn't seem to have it. I have been calling convert on the ...

transform .SVG images by the help of PHP - Image Magick similar

Hello. There's a need to transform .svg files and save em either in .svg or jpeg format. The problems with ImageMagick is that it saves transformed files on white background and I deadly need it on transparent. Any suggestions with other tools or clear php? Would really appreciate it. ...

How to convert large SVG file to tiled PNGs?

I have a large SVG file (approx. 60 MB, 10000x10000 pixels but with the potential to get much larger), and I'm wanting to create, say, many tiled 256x256 PNG images from it (in that example there would be 1600 images; round(10000/256)^2). Does anyone have any idea of how to do this on a web server (running PHP amongst other things)? I ...

PHP Imagick "wand contains no images"

Hi all, When attempting to do a simple conversion from PHP, I receive this error : exception 'ImagickException' with message 'wand contains no images `MagickWand-2' @ error/magick-image.c/MagickSetImageFilename/10080' What is MagickWand doing there ?? I did not install it... Here is my simple code : $a = "/[...]/test.jp...

PHP Exec funtion doesnot run imagemagick sheel command, but running same script properly from shell.

Hi, I am running following command through EXEC PHP function. I am creating JPG from PDF file from ImageMagick Library. Command: /usr/local/bin/convert -density 500 '/home/pop/www/pdf/pdfSample.pdf' -resize 18% '/home/pop/www/images/pdfSample.jpg' I am getting following Responses from EXEC PHP function. Output Array: Array ( ...

Imagemagick or similar for scripted image enhancement

I found the following algorithm to work fairly well for enhancement of various images of whiteboards, etc: duplicate the layer, make sure the top layer is active (gaussian)blur the new layer. You shouldn't be able to read the text anymore. set the layer mode to dodge invert the layer I tried it out in gimp and it looks promising. I'...

Imagemagick bold text

Hi, I have an image which contains some text in it. My OCR software recognizes it properly only if the text is in bold. I was wondering if there is any way by which i can make the text in an image bold using ImageMagick before i send it to OCR. Any help is appreciated. THanks ...

converting tiff files to jpg from php

Hi, I am trying to convert a folder of tif files to jpeg so they can be displayed on my website. my current approach is not working. i wrote a perl script with #!/usr/bin/perl opendir(DIR, $ARGV[0]); @files = readdir(DIR); closedir(DIR); foreach $file (@files){ if($file =~ /(.*?)\.tif/){ print "converting $file\n"; `convert -au...

Can paperclip read photo geometry off an S3 bucket?

I would like to read the geometry of a photo off of my S3 container. When it's on my local, this works : def photo_geometry(style = :original) @geometry ||= {} @geometry[style] ||= Paperclip::Geometry.from_file photo.path(style) end But it doesn't seem to work when I switch my model over to S3.. Any recommendations? The bigger s...

ImageMagick, passenger, rails, attachement_fu doesn't resize

Hi guys! So after a couple of months of development today I am finaly deploying! (WOOHOO great day). But i am stuck with a problem I can't seem to fix: First of all in development all is working perfectly. In deployment on my server it isn't though!. I use attachment_fu and i am able to upload pictures but the pictures are not resizing...

Imagemagick ampersand in directory

I am converting images using imagemagick from php. I have a directory name that contains ampersand. When I issue a command from php using exec it does not work for the directory that contains ampersand (&) sign. Can anyone help me how to solve this problem? I can't rename the directory. Thanks ...

Create a video from images unix command line with transitions

I found several questions with answers on how to create a video from images. I setup two of them and was able to produce the videos correctly. I tried the following: ImageMagick convert -delay 100 -quality 75 photo1.jpg photo2.jpg movie.mpg FFMPEG ffmpeg -r 10 -b 1800 -i photo1.jpg photo2.jpg movie.mpg The end result is the video disp...

Bulk Image Resizing with PHP and ImageMagick

Hello All, In the early days of my site, I allowed people to upload any size image they wanted. I now have client and server side config to limit new images to 2000px max, while maintaiing the origional ratio. So from the old config I have a heap of directories with large images that I need to scale down, I would like to do this on the...

How to combine 2 imagemagick commands together

I got 2 seprate Imagemagick commands (resize and crop circle). Is it possible to combine both commands into single PHP exec. exec('convert original.jpg -resize x100 -gravity center -crop 100x100+0+0 +repage thumbnail.jpg'); exec('convert -size 100x100 xc:none -fill thumbnail.jpg -draw "circle 50,50 50,0" circle.png'); Many thanks ...

Converting GIF's, PNG's and JPG's to .ICO files using Imagemagick!

From: JPG, To: ICO; /usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 /chris/images/sites /favicons/temp/1278346974.jpg -transparent white -colors 256 /chris/images/sites /favicons/custom/favicon.ico (Added line breaks for readability --Pekka) This is the output for the command line. From: GIF's, PNG To: ICO; /usr/bin/c...