imagemagick

PHP Image Magick / Text-to-PNG - many lines & switch fonts inside image-build

Greetings. For a PHP-Project, I have to build PNG-images where I pass some text and then let imagick generate the image for that text. I did this kind of stuff with success in gd, but only had 1 font (per text-generation-block) to play with. As I want to change between 2+ fonts while generating this textblock I read a lot in Google, bu...

problem with ImageMagick And Java Runtime Exec

I Have a bit of a strange problem no java expert i know could solve .. i need to used imagemagick on my application to make the emails on my website converted to images so no pot can take the emails easily .. the problem solved with image magick command line as following convert -size 200x30 xc:transparent -font /home/emad/TITUSCBZ.TT...

How to convert PDF to images using C# and ImageMagick?

I would like to convert a PDF file to .GIF using C# and magicknet.dll. I have added the reference to the MagickNet Dll to my project. MagickNet.Magick.Init(); MagickNet.Image img = new MagickNet.Image("d:/aa.pdf"); img.Write("d:/bb.gif"); MagickNet.Magick.Term(); img.Dispose(); System.Runtime.InteropServices.SEHException was unhandle...

Paperclip save images as jpg with white background

Hi, I'd like to know how to convert png and gif files with alpha channel to jpg with white background with paperclip I tried this but, it doesn't work has_attached_file :photo, :whiny => false, :styles => { :medium => ["300x300>", :jpg], :thumb => ["100x100>", :jpg] }, :convert_options => { :all => '-alpha white -background white'}...

How to capture screenshots from a video clip 50 minutes into the clip and do it fast?

Ok it seems that whenever I tell ffmpeg to take a screen cap half way though the clip (clip can be as long as 10 hours) it uses 100% of 1 cpu core and takes ages… whereas if I let it do a frame at the start it goes real quick, as if it scans though the video to get to the middle instead of just jumping to it! Here is the code im current...

RMagick freezes ruby processes when required on OS X Snow Leopard

I've got quite a strange problem. I've installed ImageMagick via homebrew. I've installed rmagick-2.12.2 and rmagick-2.11.2 with no issues. I get no errors on installation of either. ImageMagick seems to be installed and in my path: $ convert --version Version: ImageMagick 6.5.6-5 2010-01-30 Q16 OpenMP http://www.imagemagick.org Cop...

imagemagick with foreign characters

ImageMagick doesnt seem to work with foreign characters. I use the following code It works fine until a letter in the path or the file has a foreign character. How do i convert images to thumbs on my asp.net site? Is there a plug in or another app or version i may use? Process app = new Process(); app.StartInfo....

ImageMagick.Net confusion

I've been trying to use the IsSimilarImage magick method from the ImageMagickNet project but I'm confused as to whether I have to route these methods through the Magick++ as any functionality available to the .net side originates in the Magick++. Has anyone added any custom functions to ImageMagickNet that could shed some light on where ...

Looking for an JavaScript large image editor

I'm looking for a JavaScript image editor, that allow editing large images. Something like what Google Maps does, the client side only shows a small part of the big image that resides on the server. I know Pixastic and CanvasPaint, but them only allow editting complete images loaded in the browser side. Does anyone knows something like...

Using subprocess.call to crop an image

I'm having trouble in my python script, and I don't understand it : subprocess.call(['convert', file, '-crop', '80x10+90+980', '+repage', 'test.jpg']) Returns "invalid argument - -crop" But if I run this from the command line, it works fine : convert test.jpg -crop 80x10+90+980 +repage test.jpg What am I missing here ? ...

Detect an object in image using IMAGEMAGICK

Hello Everyone! I have an image with Gray Background and 'CUP' in center of it... I want to detect the boundaries of the cup in this image.. After detecting CUP I want to extract the CUP from the image using IMAGEMAGICK.. Note I have many images with different objects (like CUP) in the center and with different background color .. So I ...

Reducing the file size of a very large images, without changing the image dimensions

Consider a application handling uploading of potentially very large PNG files. All uploaded files must be stored to disk for later retrieval. However, the PNG files can be up to 30 MB in size, but disk storage limitations gives a maximum per file size of 1 MB. The problem is to take an input PNG of file size up to 30 MB and produce an...

detect picture orientation with ImageMagick

I want to resize a picture to a new size using one parameter: Width. If the picture is horizontal, the new size will be: width = Width, height = proportional to width. And if the picture is vertical, the new size will be: height = Width, width = proportional to height. Any idea how to implement this? I'm using ImageMagick with Magick...

ImageMagick Gravity parameter

I'm trying to create a process to automatically generate thumbnails of the images uploaded to my website. I'm using this command line: -thumbnail "120x90>" -quality 95 -background transparent -gravity Center -extent 120x90 img.png The thumbnail is generated without problems, with the correct aspect ratio. but the option -gravity cent...

Add border to top of image using imagemagick

I have an image 100x40 and I want to add a border to the top of the image 10 pixels high. I've found convert source.jpg -border 0x10 out.jpg but this adds a border to the top and bottom. Is there anyway to add it to only the top? ...

How and when shell I use: Magick.Init and Magick.Term methods?

It seems that Magick.Net doesn't have a really documentation. I see in the home page example the use of Magick.Init and Magick.Term methods: static void Main(string[] args) { MagickNet.Magick.Init(); MagicNet.Image img = new MagicNet.Image("file.jpg"); img.Resize(System.Drawing.Size(100,100)); img.Write("newFile.png"); ...

How can I read image from Stream with ImageMagick.Net library

I have a stream that has a picture. I need to write this picture to disk with a name in the format: "width x height". The problem that I'm getting the picture dimensions with ImageMagick. but ImageMagick cannot read files from the memory, but only from the disk. Is the only solution is to create a temp file, read it, and write another ...

Replace transparency in PNG images with white background

I've got some PNG images with transparency, and I need to create versions with the image layer composed onto a white background. I've tried various things with Image Magick "convert" operations, but either nothing happens at all or I get an error. I don't want to go to an intermediate JPG form because I don't want the artifacts. Of co...

Perl+Image::Magick usage: how to assemble several areas in one image into a new image?

Hi Everybody, I'm new to ImageMagick and haven't figured out how to assemble several areas into a new image. E.g., I know the "geometry" of words "hello" and "world" respectively in an image, what I need to do is to retrieve the word images and put then into one line image while keep their relative positions. Question1: Suppose I use ...

How to apply vignette image magick filter in ez publish

Hi Im using eZ Publish and wish to apply a vignette filter to a image, how I am not sure how to do so in the image.ini file. At the moment I have [frontitem] Reference= Filters[] Filters[]=geometry/scaleexact=800;400 However Im not sure how to add it, thanks. ...