Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [imagemagick]

Imagemagick is a cross-operating-system bitmap manipulation software package, run from commandline and programmable through a variety of programming languages.

0
votes
1answer
17 views

Batch background removal on non-uniform images

The issue I'm having is the following: I have an archive of about 700,000 tiff images that were originally microfilms. They are all black and white and are basically paper with information on it. I'...
3
votes
2answers
111 views

How does tinypng.com minimize pictures?

I recently discovered tinypng.com, which helped me to minimize a picture on my website from over 60k to less than 20k by keeping the same quaility (for me personally at first sight, I'm not so into ...
1
vote
0answers
39 views

a best way to compress a png atlas with transparency

I have an atlas of assets in a transparent png with 8-bit alpha (660kb) and I want to compress it. Could you suggest what options do I have? When using a pngquant (I'm using SuperPNG plugin for ...
1
vote
0answers
41 views

Acrobat is creating files starting with “magick-” What are these?

I just noticed today that in every folder where I have PDFs, there are also a random number of files that begin with the word "magick-" which is followed by a string of around 17 numbers, letters and ...
2
votes
1answer
108 views

flip an ico-image without quality loss or size increase

My goal is to take an ico-image, like this wikipedia.ico and flip it vertically. My first attempt was $ convert -flip wikipedia.ico flipped.ico And it works, except that the resulting file flipped....
0
votes
1answer
232 views

Creating 450px x 450px PNG with ImageMagick for various sized images

I have a mixture of e-commerce product images that are various widths and heights but with a max of 400px. As I am having issues with uneven product listings, I want to use ImageMagick to bulk resize ...
1
vote
1answer
234 views

Imagemagick Chroma Key removal

I am using Imagemagick to create an automatic chroma key removal program. I have been successful in creating a mask for the image using the following commands: magick convert woman.original1.jpg -...
1
vote
0answers
36 views

I want to automatically and randomly stitch / combine images as square tiles onto a DIN A4 canvas

Suppose I have a folder of different images, all different in sizes and resolutions. I want to randomly choose between 6 and 18 of these images, scale, crop, and combine them as square tiles onto a ...
2
votes
1answer
279 views

How to batch add whitespace to rectangular images so they all will be square?

I have a lot of various sized rectangular images. I would like to keep them centered, do not change their size and only add white space, so every image would be square. After that, I want to convert ...
0
votes
1answer
538 views

Cut out part of image canvas

I've got a very long image (200x20000 px) and I need to cut out many rectangular parts inside it (whole width, but setting height of the cutted parts manually) merging edges together. I.e. something ...
-1
votes
1answer
103 views

Method to find coordinates of where image is cropped

Here's my problem: I'm working with a tool that automatically crops an image that i supply to it. I need to find out exactly which coordinates of the image does the tool crop? Right now i used ...
3
votes
3answers
624 views

Is there a way to rename images based on their dominant color?

I have a folder full of PNG files made up of a single color... Here are a few of them to give an idea of what I'm trying to do: I want the name of the files to be their hex color codes. It would be ...
4
votes
1answer
216 views

Extract similarities between bunch of image to remove stains on gimp or imagemagick

I didn't find clear answer on that: I have some dots and stains on my lens. It's not so visible on some pictures but when I take shot at sky or something bright, the image is spoiled by stain and ...
6
votes
1answer
474 views

ImageMagick: distort perspective according to a vector path

I want to use ImageMagick to transform a rectangular image (first page of a PDF, created using convert in.pdf[0] cover.png) to the following white shape. I have the vector file and know about ...
-1
votes
3answers
2k views

ImageMagick - How to convert png image background to transparent leaving only text?

This question is asking for an ImageMagick method not Photoshop. I'm hoping someone will be able to tell me what to type in cmd to perform the following operation: I have an image file with a black/...
1
vote
1answer
1k views

Imagemagick: how to compare two images and obtain a third image with the differences?

Anyone knows how to make imagemagick output an image with the differences between two other images? Similar to a diff, but not exactly the same. Any other Windows/Linux commandline tool that can be ...
0
votes
2answers
1k views

Drop shadow for animated GIF

Briefly I don't know, how I can to make shadow effect for animated GIF. For me good solution in any open source/free program, not Photoshop. Detail For PNG images I make shadow effect. Example: ...
1
vote
1answer
309 views

How to provide label for montage by text file

I use Ubuntu 14.0.4. We can use this command of ImageMagick to label each image by it's name: montage -label '%t' -size 512x512 "./img/*.*[120x90]" -geometry +5+5 photo.png I want to label images by ...
1
vote
1answer
261 views

Prevent white border effect when converting an image to grayscale with ImageMagick

For printing images on a Epson TM-T88v receipt printer, I had to convert a PNG file to a 4-bit grayscale PNG by using ImageMagick. Using the following command I'm getting pretty good results except ...
4
votes
1answer
2k views

Convert 8bit sRGB to 4bit grayscale with ImageMagick

I want to print an 8bit sRGB PNG image on an Epson TM-T88v receipt printer. The printer needs a 4bit grayscale PNG file to print it correctly. As I'm using PHP with ImageMagick, I'm not sure which ...
2
votes
1answer
88 views

How To Estimate Brightness-Contrast Value of Gray Figure?

Situation: I have gray figures, figure A and figure B, where figure B is wider than figure A; Figure B is very light although from the same situation but with little more perspective/view/data in it; ...
0
votes
2answers
1k views

Best way to produce PDF files containing CMYK images

I've wrote a program that uses iTextSharp to produce PDF files. I'm currently producing PDF files used solely for print (personnal and professional) that contain CMYK images. The source images are ...
2
votes
1answer
535 views

How to resample an image with lanczos-3 filter using imagemagick?

I'm not a pro in imagemagick. I have read documentation, but it has no use if you could not understand clearly how it works. I read in the wikipedia about lanczos filter and would like to try it for ...
2
votes
2answers
76 views

Automating the reizing of different size images to a 300px by 200px image size

I have various size images, some tall and wide others wide and tall, all with different image dimensions. Is there a platform where I can dump all these images and they will be resized to fit into a ...
3
votes
1answer
452 views

EPS file looks great in AI but washed out in Mac Preview or ghostscript

I have an EPS file that, when opened in Illustrator, looks great. AI can export to a PNG that also looks great. When I open this file with Preview on OSX, or use ghostscript/imagemagick to convert it ...
0
votes
0answers
138 views

Where does Photoshop get the pixel ratio from?

I have images that I generate via ImageMagick that are supposed to have a non-square pixel ratio. Photoshop seems to be able to detect that the pixel ratio is not square (I see that there is a custom ...
3
votes
1answer
911 views

Animate images in correct order using ImageMagick [closed]

I'm using ImageMagick on Ubuntu Linux and I'm attempting to convert sequentially named files into a gif animation. Usually this is an easy operation and only requires that I run something like convert ...
0
votes
0answers
203 views

Are there tools (imagemagick, graphicmagik) that use zopfli compression as part of their stack?

The title pretty much sums it up, are there any good batch type tools that provide high level of compression such as zopfli when creating optimized images and underlying paginated formats (TIFF, PDF)? ...
0
votes
0answers
232 views

How to axis-align concatenated images with ImageMagick's montage command?

I have this image: And I want to tile the image so that the result looks like this: I need this to be performed for a time-sequence of images, and there are a lot of them, so I want to script the ...
3
votes
1answer
155 views

Is there an Imagemagick replacement for Photoshop’s “same color” feature?

Photoshop offers a feature called same color. It adjusts the colors of an image based on another. Here is an example, these 2 pictures share different colors (one of them has an orange shade over it)....
7
votes
3answers
87k views

How to convert Adobe Illustrator file (.ai) to Photoshop (.psd) without having Adobe Illustrator installed

I want to convert an Adobe Illustrator file (.ai) to an equivalent Photoshop (.psd), preserving layers, text and so on. I would like to know if there is something like imagemagick to do this, because ...
1
vote
0answers
2k views

imagemagick convert: changing color profile

I use the imagemagick convert command to create thumbnails for the web from large images. convert y2.psd[0] -resize '80x40' y2.png Some images uploaded by a customer are CMYK Photoshop files with ...
3
votes
2answers
2k views

Gimp 2.6.12: modify alpha channel while preserving color

This is for a video game in which a specularity mask is in the alpha channel of the normalmap. I need to create an image where the alpha value for some pixels are 0 (to indicate no specularity,) but ...
2
votes
1answer
741 views

How to convert a specified colour to transparent for a series of PNGs with ImageMagick?

I've installed ImageMagick on Windows 7 64-bit and I'm wondering how I can convert a series of PNGs to transparent PNGs in a timely manner (I have 180 PNGs to convert, so yeah I can't exactly do them ...
6
votes
1answer
4k views

Nearest neighbour interpolation not working in ImageMagick

I want to display an image and have the pixels big and clearly visible. As it's common to display scaled image with some form of smooth filtering, the best option is to scale up the image resolution ...
6
votes
3answers
3k views

Using imagemagick to create vibrant images

I'm in the process of helping out a friend who has a bunch of inventory pics. Most appear faded/washed out, and generally dull. I really like the effect as described here: http://www.abeautifulmess....
5
votes
2answers
10k views

How to correctly using potrace (CLI) to trace bitmap

I was trying to vectorize a .png. I found a utility (which is incorporated into InkScape), the potrace. If any of you knows how to use potrace, kindly teach me the right way to get sharp output. ...
1
vote
0answers
383 views

Rescale an image on a log scale

I'm trying to rescale a map based on a log scale (so the first inch is about a mile, the second inch is two miles, the third is four miles, etc.). To complicate things, I would like this to be radial, ...
1
vote
1answer
537 views

Maximizing saturation while converting CMYK to RGB

I have many designs prepared for print (CMYK), but now I need to present them on a projector. As projectors go, I know most of them have weak contrast, and many of my colors wouldn't be as accented as ...
1
vote
2answers
2k views

Replace color for all layers

I have a file with about 500 layers, and I need to replace a color in all of them. I looked through different solutions here and elsewhere, and they all suggested using an adjustment layer or ...
5
votes
4answers
27k views