Questions tagged [imagemagick]

ImageMagick is an open source software suite for displaying, converting and editing raster image files.

The software mainly consists of libraries and a number of utilities for manipulating images.

File format conversion

One of the basic and thoroughly-implemented features of is its ability to efficiently and accurately convert images between different file formats. Over 100 different formats are supported.

Language Bindings

There are ImageMagick bindings for most popular programming languages including , , , , , , , , , , , and . There are also bindings for which only operate in Mac OS X and Linux, not iOS.

Distribution

is cross-platform, and runs on all recent versions of Microsoft Windows (except Windows 95), and Unix-like systems including Mac OS X, Linux, Solaris, and FreeBSD. The project's source code can be compiled for other systems, including AmigaOS 4.0 and MorphOS.

Resources

9193 questions
3
votes
0 answers

ImageMagick 100% static build for Linux

I'm working with legacy system and I need to statically build ImageMagick (6.9 and/or 7.x), because the one in use is very old and has some bugs fixed by more recent versions (and I need these fixes). I've checked plenty of resources, all coming…
pzaj
  • 1,062
  • 1
  • 17
  • 37
3
votes
2 answers

ImageMagick in C#: Get byte array from Convert call?

I am trying to use the ImageMagickObject COM component supplied with the Windows Installer for ImageMagick, imported to my C# project as a COM reference. So far, I've been able to use it to convert images from one file on disk to another file on…
rswafford
  • 374
  • 3
  • 8
3
votes
1 answer

Making white background transparent using ImageMagick

I have about 2700 images that I want to: Convert to .png Make the white background, transparent To do this, I downloaded ImageMagick using Homebrew and ran the below command in the relevant directory: find . -type f -name "*.jpg" -print0 | while…
Elfordy
  • 57
  • 1
  • 8
3
votes
1 answer

ImageMagick - Convert image RGB to CMYK using ICC in Python

Is there any way to convert an RGB image into a CMYK one using ICC in a python ImageMagick binding. I know you can easily do it in the command-line, but is there anyway to do it in a binding like Wand (preferably Wand)? What I have now is: from…
pepper5319
  • 667
  • 4
  • 8
  • 24
3
votes
1 answer

Paperclip w/ Imagemagick, Amazon S3 and Heroku - Imagemagick & S3 work, but the Paperclip fields don't get set in database. Works fine in dev

I'm using Paperclip with Imagemagick in my app, using Amazon S3 for storage. Everything works fine in development. But in production on Heroku it's not working correctly. The image gets uploaded to Amazon S3, and the thumbnail creation works, so…
ben
  • 29,229
  • 42
  • 124
  • 179
3
votes
1 answer

What is difference between setImageCompressionQuality vs setCompressionQuality - Imagick

I found two methods in Imagick for set image compression quality A ) setImageCompressionQuality B ) setCompressionQuality so I want to know which one is best and why in below condition I read that setCompressionQuality method only works for new…
AZinkey
  • 5,209
  • 5
  • 28
  • 46
3
votes
1 answer

Can I brew link only files without conflicts?

Is there a way to brew link just those files without conflicts? As near as I can tell, the only options are to force an overwrite of all conflicting roles, or to link no files at all. For example I have an existing compare that I need to keep, but…
orome
  • 45,163
  • 57
  • 202
  • 418
3
votes
2 answers

Compare images for rendering differences (ignoring antialiasing)

I have a PDF file that I render using Adobe PDF engine as well as another PDF rip. I want to try to identify places where they render differently. The problem is that they both render with slightly different anti-alias, color, and very minimal…
3
votes
1 answer

Does ImageMagick compare with RMSE always return 1 regardless of dissimilarity-threshold?

I'm using ImageMagick to compare files and I want it to return exit code 0. if the images are within some threshold of similarity. However, using metric RMSE and setting dissimilarity-threshold to allow some range of variability, it still returns 1.…
Zebbeni
  • 315
  • 2
  • 8
3
votes
2 answers

Convert base64 pdf string into an image

I have tried the approach in this example and the duplicate I still continue to receive a blank image when I render it. I need to generate a png file from this base64 string. The label_string is the base64 encoded pdf that I receive from a shipping…
tnaught
  • 301
  • 4
  • 13
3
votes
3 answers

Change AppIcon at build time in Xcode 9

I use a script to generate app icon at build time (just add "dev" title for debug mode). That's pretty easy using ImageMagick and Ghostscript (a lot of examples in google). Everything was ok before I started to use new Xcode 9. Now, I can see…
3
votes
0 answers

Ruby on Rails - Image translation missing: en.errors.messages.mini_magick_processing_error

Have a Ruby on Rails app with carrierwave and imagemagick for image upload. In my app, when I click to save record with the image upload, get an error "Image translation missing: en.errors.messages.mini_magick_processing_error". Seeing this on a…
3
votes
1 answer

Fastest way to load thumbnail pixel values into Java

I need to be able to load RGB pixel values at a certain resolution into Java. That resolution is small (~300x300). Currently, I've been loading them like this: File file = new File("...path..."); BufferedImage imsrc = ImageIO.read(file); int…
McTrafik
  • 2,843
  • 3
  • 29
  • 31
3
votes
1 answer

Resize huge images in Python (bigger than available RAM)

I would like to resize and split huge (1 TB) images to 256x256 pixel tiles (Zoomify / OSM / Google Maps / XYZ schema). Images would be in BigTIFF or PSB (Large Document Format or Photoshop Big) format. What are the available libraries which can do…
hyperknot
  • 13,454
  • 24
  • 98
  • 153
3
votes
2 answers

Autotrim white border from scanned image with ImageMagick?

I have ~200 scanned photos which I want to crop the white space out of. See example: Can someone provide me with the appropriate command line code to do this?... I have been trying to sort out the -trim and -fuzz options with no luck. NOT ALL…
NRav
  • 407
  • 1
  • 6
  • 18