imagemagick

Wampserver and imagemagick installation question.

Does wampserver have imagemagick already installed on it? If not where can I download imagemagick and install it? Is there a detailed tutorial on how to do this? I'm using Windows Vista. ...

Image Color Picking Script

I have a bunch of sports team logos. What I want to do is find the color that is used for the highest percentage of pixels. So, for the patriots logo below, I would pick out the blue or #000f47 (white will not be an acceptable color), as this is used for the highest percentage of pixels. Obviously I can eyeball each image, use the col...

What could cause a "color index out of range" error for imagecolorsforindex()?

When doing a patch resize to a big bunch of JPG, PNG and GIF files, PHP drops dead quite unexpectedly with the following error message: imagecolorsforindex() [function.imagecolorsforindex]: Color index 226 out of range The relevant code fragment is: protected function preserveTransparency($img, $resized, $ftype) { if (($fty...

ImageMagick Error in Django's aino-convert app

I'm using aino-convert on a project and running into an issue I've never seen before. I've taken the exact same code from another project where I've used aino-convert, but it's blowing up with an ImageMagick error in the new project. My template code looks like this: {% thumbnail img.image "156x106" as thumb %} <img src="{{ thumb }}" al...

Undefined method has_attached_file after Paperclip installation?

Not sure if I've done everything right here. I added the Paperclip gem to my Gemfile and did bundle install. I followed along with the readme instructions on Paperclips Github page. I wasn't sure if I needed to install ImageMagick. But, I found a script on Github for installation on Snow Leopard, so I ran: rails plugin install http:/...

How do I fix ImageMagick install error on MacPorts?

I've been trying to install ImageMagick through MacPorts with no luck. After running sudo port install ImageMagick, I get the following error: Computing dependencies for ImageMagickError: Unable to execute port: invalid command name "supported_archs" I'm running Mac OSX 10.5 with the latest version of MacPorts. Anyone able to shed some...

ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config

I used a script to install ImageMagick http://github.com/masterkain/ImageMagick-sl After a while, I got ImageMagick installed. Then I ran sudo gem install rmagick and got Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. .rvm/rubies/ruby-1.9.2-p0/bin...

Current version of the rmagick gem (2.13.1) doesn't work with current version of ImageMagick (6.6.4)

I'm on OSX Snow Leopard though I think this may not be a platform-specific issue. The problem is I've wasted hours of my life trying to get gem install rmagick to work and I'm hoping to save the next person that grief. I believe the core problem is summed up in the title. Questions: Can anyone confirm that Rmagick 2.13.1 doesn't work ...

Google PageSpeed & ImageMagick JPG compression

Given a user uploaded image, I need to create various thumbnails of it for display on a website. I'm using ImageMagick and trying to make Google PageSpeed happy. Unfortunately, no matter what quality value I specify in the convert command, PageSpeed is still able to suggest compressing the image even further. Note that http://www.imagem...

imagemagick for thumbnail

I would like user to upload most of their photo albums online, would it feasible to create and save one in thumbnails folder and one in full size folder or generate thumbnails on the fly when the user access their album? It will be something like eBay does. Webspace is not a concern since I have an unlimited plan. ...

Server-side video editing

This is what I need to do on a server. Let's say that I have 3 video files: video1.avi 2 minutes -> 640x320 video2.avi 1 minute -> 640x320 video3.avi 1 minute -> 640x320 I need to create video4.avi, that will be 2 minutes long and 1280x320, Containing the videos side by side (horizontally).I need video2 and video3 to be at the right s...

Using Remote Image in ImageMagick

Hi all, I'm trying to do a simple thumbnail generation from an image that isn't located on my server using the iMagick wrapper for ImageMagick. For some reason, the following code will not display anything when called: <?php $image = new Imagick("http://kunaki.com/ProductImage.ASP?T=I&amp;ST=FO&amp;PID=PX003Y9EDJ"); $image->thumb...

How can I center captions in PerlMagick?

Using ImageMagick on the command line I can say convert -background '#0000' -fill white -stroke black -strokewidth 3 -gravity center -pointsize 78 -size 568x1000 caption:'Lorem ipsum etc etc' -trim +repage out.png And produce the output I'm looking for. What I'd like to do is the same thing but within PerlMagick so that I don't have ...

imagemagick compare -metric rmse result interpretation

hi All, i did the following to get difference between two png files: compare -metric rmse a.png b.png null: result i got is: 3374.35 (0.0514893) i am running it on windows. Can you please tell me what those numbers mean? Does the b.png deviates too much from a.png? Can you give me link, if possible, where I can read on results e...

Convert source code to syntax highlighted image

Background OpenOffice Writer lacks the ability to link to an ASCII text source file, apply syntax highlighting, wrap it in a frame, and update the frame contents whenever the source file changes. However, OpenOffice Writer can link to images, and will update the images automatically when they change. Problem The images need to be high...

How to modify a homebrew formula?

I installed imagemagick via homebrew. However, due to a bug I have with my current configuration, I need to adjust the compile flags for the formula and reinstall it. How can I accomplish this? Note: I'm a complete homebrew noob, so please offer a detailed explanation. ...

Can't install Rmagick and Imagemagick on Windows 7.

Hi there, when I run gem install rmagick-2.13.1.gem from the directory in which rmagick-2.13.1.gem is I get an Error saying that it failed to build gem native extension, below which it says c:/Ruby192/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5 ... yes Unable to get Imagemagick version ***extconf.rb failed*** Could not c...

ImageMagick: What is this convert-command doing?

I'm trying to port a PHP script to Ruby and until now I only used ImageMagick to convert from one file-format to another. Meaning: Yes, I'm an ImageMagick newbie. ;-) Somewhere inside the PHP script the following code is executed: $output = array(); $returnValue = 0; $cmd = 'convert '.$pngFile->path.' -resize 1x1 -alpha on -channel o ...

execute an external command in java

Is there a way to execute a command in java that doesn't suffer from the startup overhead (slowness) of using ProcessBuilder? More detail: I am using im4java which is a java library that internally uses ProcessBuilder to execute imagemagick's programs. It is slow. I have created a small unit test that shows that ProcessBuilder (not im4j...

Heroku: Running imagemagick w/ paperclip

I have installed image magick on my mac os x computer and now I want to deploy it to heroku. I've installed the the paperclip plugin on heroku but I get this error when uploading an image: Paperclip::CommandNotFoundError I had this error before when I didn't have imagemagick instaledl on my computer before but now that I want to deplo...