ImageMagick

ImageMagick on Google Cloud

寵の児 提交于 2019-12-31 05:14:10
问题 I use ImageMagick on the Google Cloud Platform. I use rails and Google's App Engine Flexible Environment. So the problem is I want to upload an Image to process in more sizes. I use paperclip. The error is: Could not run the identify command. Please install ImageMagick. So my question is how I can solve this issue? Uploading a Image without processing works 100%. But the issue is the processing I think. So paperclip needs ImageMagick to process the images. The problem is I use App Engine

Cannot install older version of ImageMagick via Homebrew

若如初见. 提交于 2019-12-31 04:27:05
问题 I need to install ImageMagick 6.5.8 (or earlier might do), but even when I checkout an earlier commit, it installs the latest version (6.6.9-4). I did this: $ git checkout -b im-6.5.6 ff414bb (then confirmed that the working tree shows the correct version of imagemagick.rb, with @url = a .tar of version 6.5.6-5) $ brew install imagemagick (and it says Checking out tag 6.6.9-4 and then proceeds to install that version) Any help would be appreciated. Thx. 回答1: Hope you managed to find a

Program can't be found in PATH by Java Runtime on Mac OS X

被刻印的时光 ゝ 提交于 2019-12-31 00:50:52
问题 I am using ImageMagick on Mac OS X (10.7). I installed it with the help of MacPorts . When I now enter the Terminal and write: identify image.jpg it is working perfectly fine. But now while executing it from within Java, the following exception gets thrown: org.im4java.core.CommandException: java.io.FileNotFoundException: identify I can see it's on the PATH by running: which identify with the response: /opt/local/bin/identify Now while running: echo $PATH I get the response: /opt/local/bin:

Rails 4 - Imagemagick Resize to fill space

懵懂的女人 提交于 2019-12-30 14:38:32
问题 I have thumbnail product images that are in different aspect ratios and sizes. This is a marketplace app so sellers will load images in various sizes. I want to resize to make them fit within the 200x200 thumbnail grid that I have. I'm on Rails 4, Paperclip 4.1, Imagemagick 6.8.9 Based on an earlier version of IM, this is the effect I want - http://www.imagemagick.org/Usage/resize/#space_fill - fill blank space to fit a 200x200 grid. See the problem with alignment on my demo site here -

ImageMagick compare executable: unrecognized option `-metric' @ error/convert.c/ConvertImageCommand/2060

夙愿已清 提交于 2019-12-30 14:37:12
问题 I tried to use apt-get install imagemagick command to install ImageMagick on my Debian Wheezy. But when I try to diff images, I get following error: root@work:/home/tests/YAML_SHOTS/en-us# convert 1.png 2.png -metric RMSE -compare 3.png convert.im6: unrecognized option `-metric' @ error/convert.c/ConvertImageCommand/2060. Secondly, I tried to install ImageMagick from binary source (described here: http://www.imagemagick.org/script/install-source.php#unix). But it does not install the convert

Understanding ImageMagick's convert and translating to Ruby RMagick

别等时光非礼了梦想. 提交于 2019-12-30 10:03:33
问题 I'm failing at translating the following PHP/ImageMagick code into Ruby RMagick (to make it more manageable for future users and to understand what it's really doing): $output = array(); $returnValue = 0; $pngFiles = $myDir->find("/.png$/i"); foreach($pngFiles as $pngFile) { $cmd = 'convert '.$pngFile->path.' -resize 1x1 -alpha on -channel o -format "%[fx:u.a]" info:' exec($cmd, $output, $returnValue); if($output[0] != 1) { logMessage("PNG file contains some alpha transparency and will not be

Generate images with ImageMagick without saving to file but still display them on website

送分小仙女□ 提交于 2019-12-30 06:56:51
问题 This is my ImageMagick code which works fine on my webserver by creating new image with the file name 'coloured_font.png' in a default directory ... <?php $cmd = " -background none -pointsize 60 -font Times-Roman -fill red ". " -strokewidth 1 -stroke black label:\"google\" "; exec("convert $cmd coloured_font.png"); ?> But now I am running ImageMagick on Windows which will not create any image files in a default folder but ImageMagick applications runs fine(i have tested by creating thumbnail)

Convert RAW photos to JPEG in linux/php

≡放荡痞女 提交于 2019-12-30 06:36:51
问题 I'm working on an photo upload app and need to allow users to upload raw files from cameras (these are not jpegs) and have the server automatically create a jpeg version of them. I currently have Imagemagick installed but I don't think there is a way to do it in there. Cameras come out with new raw formats all the time, so im looking for something that will be relativley up-to-date and command php exec() is an option too. Does anyone have anything to suggestion for raw conversion? 回答1:

Python subprocess: wait for command to finish before starting next one?

僤鯓⒐⒋嵵緔 提交于 2019-12-30 06:20:11
问题 I've written a Python script that downloads and converts many images, using wget and then ImageMagick via chained subprocess calls: for img in images: convert_str = 'wget -O ./img/merchant/download.jpg %s; ' % img['url'] convert_str += 'convert ./img/merchant/download.jpg -resize 110x110 ' convert_str += ' -background white -gravity center -extent 110x110' convert_str += ' ./img/thumbnails/%s.jpg' % img['id'] subprocess.call(convert_str, shell=True) If I run the content of convert_str

How to install ImageMagick with Wampserver 3.0.0 64?

这一生的挚爱 提交于 2019-12-30 05:16:32
问题 I lost a day trying to figure this out, at various times getting "no decode delegate for this image format" and "The specified module could not be found" errors. The information I could find on these problems was dated in terms of version numbers, and many included instructions like overwriting the ImageMagick-installed dlls from the PECL distribution or copying dlls into windows/system32; two things I didn't want to do. Environment: Windows 10 Wampserver: 3.0.0, Apache/2.4.17 (Win64) PHP/5.6