Skip to main content

Questions tagged [imagemagick]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
101 views

ImageMagick +distort Perspective

Anyone know how I can get this name plate positioned in roughly this place using +distort Perspective? Ive tried everything. the background image is 1800x1800 (doesn't look like its uploading the ...
Chris's user avatar
  • 113
0 votes
0 answers
174 views

Given a png monochrome line drawing, how to darken only lines that are a certain distance away from other lines?

I have a png image that I generated from a cad drawing using edge-detection. Only problem is all the lines have the same thickness. The lines that mark the main edges I need to be thicker and more ...
mherzl's user avatar
  • 101
1 vote
1 answer
218 views

How does one decylinderize an image?

I need to decylinderize an image. How is this accomplished? (Gimp, ImageMagick... doesn't matter.)
fivedogit's user avatar
  • 111
1 vote
0 answers
96 views

How do I use ImageMagick to split photos in two AND output the files with a weird numbering scheme?

I am not a programmer/coder at all, just someone that can google (poorly), so I have no real idea what I'm doing. I have a bunch of pictures that I need to split in half and keep both halves. Someone ...
anon's user avatar
  • 11
3 votes
4 answers
717 views

If I have a .gif and a .png file, can I compare them to see if they are same image?

If I have a .gif and a .png file, can I compare them to see if they represent the same image? For example, let's say I have a .jpeg and I convert it to .gif and .png x.jpeg ---> x.gif \ ...
Alexander Mills's user avatar
0 votes
1 answer
297 views

Is there a way to get a non-linear (weighted) gradient with imagemagick?

Looking at creating gradients with imagemagick (or here using sparse-color) I can only see how to make a linear gradient between points. But how could I make a non-linear gradient? Like, how to I ...
Mike Pierce's user avatar
1 vote
1 answer
128 views

Creating an optimal quality PNG from PDF for desktop/laptop/mobile screens using ImageMagick - eliminating blur

I use LaTeX to create a PDF which I then crop using PDFCrop. From there I go to PNG using ImageMagick. I then insert the PNG into a software program which displays it on my screen - laptop, desktop, ...
Ungar Linski's user avatar
0 votes
1 answer
74 views

Non-Opaque Region rendered as Opaque Black (ImageMagick v7)

Non-Opaque Region Opacity is rendered as Opaque Black for the Images where the background in replaced with transparency. Using Krita's 'ColortoAlpha' Filter one can see the actual opacity values in ...
srt111's user avatar
  • 189
1 vote
2 answers
2k views

Why do some of my PNG images not have transparent backgrounds in certain circumstances?

I have a group of PNG images that serve as background overlays in an automated photo booth i.e. you have from back to front: the background image, the photo taken by the booth, the PNG overlay which ...
Brennan's user avatar
  • 11
0 votes
2 answers
172 views

Convert SVG with ex units to jpg

I'm trying to convert a bunch of SVG pictures to JPG with ImageMagick. The problem is that the SVGs have been created with ex units, and the conversion process creates output files having 1px size. ...
Davide_sd's user avatar
  • 145
0 votes
1 answer
264 views

ImageMagick: define 16 million as colors

If I need to convert colors of my bmp image to be 16 million, which value exactly shall I provide? I mean I know that I can define colors directly like that: magick convert myimg.png -colors 256 BMP:...
moibrahim's user avatar
0 votes
0 answers
137 views

Make an own adjustment layer in Photoshop

How can I program my own adjustment layer (i.e. non-destructive editing step) in Photoshop? For example in order to run dithering by ImageMagick as a non-destructive editing step within the stack of ...
root's user avatar
  • 129
0 votes
0 answers
32 views

Table Created With Convert From Textfile Has Gaps in Vertical Lines

I did find a solution for the main problem: see the end of this question. I have a text-file which contains: ┌────┬────┬────┬────┐ │ A♦ │ K♥ │ Q♠ │ J♣ │ └────┴────┴────┴────┘ I convert it with: ...
Cecil Westerhof's user avatar
-1 votes
2 answers
234 views

Different images between MATLAB and ImageMagick

Hi, I'm using ImageMagick 7.0.8-64 Q16 for Windows and MATLAB R2019. I'm doing the same operation (resizing with bicubic interpolation method) in both programs. ImageMagick code: magick start.png -...
Filippo Gambarota's user avatar
1 vote
1 answer
1k views

Batch background removal on non-uniform images

The issue I'm having is the following: I have an archive of about 700,000 tif images that were originally microfilms. They are all black and white and are basically paper with information on it. I'm ...
SteelMasimo's user avatar
5 votes
3 answers
2k 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 ...
manifestor's user avatar
3 votes
1 answer
182 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 ...
Sergey Kritskiy's user avatar
2 votes
0 answers
63 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 ...
Keith S.'s user avatar
2 votes
1 answer
291 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....
Moritz Firsching's user avatar
0 votes
1 answer
1k 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 ...
sigur7's user avatar
  • 103
1 vote
1 answer
786 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 -...
Kavinda Keshan Rasnayake's user avatar
2 votes
0 answers
231 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 ...
Bartholomaios's user avatar
3 votes
1 answer
1k 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 ...
curious's user avatar
  • 357
0 votes
1 answer
1k 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 ...
XaDOS's user avatar
  • 3
-1 votes
1 answer
629 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 ...
Aayush Agrawal's user avatar
3 votes
3 answers
2k 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 ...
BANG's user avatar
  • 1,774
3 votes
1 answer
417 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 ...
Lovelace Ada's user avatar
6 votes
1 answer
1k 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 ...
Alex's user avatar
  • 213
-1 votes
3 answers
3k 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/...
fmwavesrgr8's user avatar
2 votes
3 answers
5k 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 ...
ManuelAMS's user avatar
3 votes
3 answers
13k views

Convert batch EPS to SVG using ImageMagick?

Is there an easy way to convert a batch of EPS files to SVG format, using ImageMagick or something else? I have thousands of vector files in EPS format and I need to convert them to SVG.
user avatar
1 vote
3 answers
6k 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: ...
Саша Черных's user avatar
1 vote
1 answer
770 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 ...
hasanghaforian's user avatar
1 vote
1 answer
461 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 ...
ninsky's user avatar
  • 155
4 votes
1 answer
6k 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 ...
ninsky's user avatar
  • 155
2 votes
1 answer
128 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; ...
Léo Léopold Hertz 준영's user avatar
0 votes
2 answers
3k 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 ...
Vincent Ripoll's user avatar
2 votes
1 answer
1k 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 ...
ayvango's user avatar
  • 121
2 votes
2 answers
229 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 ...
me9867's user avatar
  • 235
3 votes
1 answer
1k 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 ...
stickfigure's user avatar
3 votes
1 answer
1k 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 ...
hellocatfood's user avatar
  • 1,062
0 votes
0 answers
312 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)? ...
dhartford's user avatar
0 votes
0 answers
383 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 ...
tmaric's user avatar
  • 101
3 votes
1 answer
189 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)....
posixpascal's user avatar
7 votes
3 answers
91k 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 ...
gc5's user avatar
  • 195
1 vote
0 answers
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 ...
emrys57's user avatar
  • 378
3 votes
2 answers
3k 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 ...
Max E.'s user avatar
  • 133
2 votes
1 answer
1k 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 ...
Josh Pinto's user avatar
  • 1,667
11 votes
1 answer
10k 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 ...
jozxyqk's user avatar
  • 464
6 votes
3 answers
5k 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....
StackOverflowed's user avatar