Skip to main content

Questions tagged [imagemagick]

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

-1 votes
1 answer
36 views

How to set up lossless settings for convert from Imagemagick ran on colored images with -compress JPEG2000/WebP for PDF/TIFF output?

Continuing Lossless or near lossless compression options for PDFs containing grayscale with JPEG2000? and Which compression modes of convert of imagemagick are lossless (with -quality 100)?, which ...
AlMa1r's user avatar
  • 149
0 votes
1 answer
51 views

Which compression modes of convert of imagemagick are lossless (with -quality 100)?

On my Debian 12, $ convert -list compress B44A B44 BZip DXT1 DXT3 DXT5 Fax Group4 JBIG1 JBIG2 JPEG2000 JPEG LosslessJPEG Lossless LZMA LZW None Piz Pxr24 RLE RunlengthEncoded WebP ZipS Zip Zstd Which ...
AlMa1r's user avatar
  • 149
1 vote
1 answer
38 views

How to layer photos on top of watermark with ImageMagick? [closed]

I am a photographer working on a project which in the end will result in some photos I'm going to post on social media. But in doing this I want to format some photos with a template I made to make ...
Callie Barker's user avatar
0 votes
1 answer
41 views

File Size increases on basic pdf -> raster image -> pdf roundtrip with `pdfimages` + `magick`

Why do I not succeed into making this simple pdf → raster image → pdf round-trip file-size-stable? $ # Get original file (8KB, just extracted from my scanner). $ curl "https://nextcloud.mbb.cnrs....
iago-lito's user avatar
  • 366
0 votes
1 answer
442 views

PowerShell, ImageMagick, GhostScript to extract each page of a PDF as a separate image

I'd like to take a PDF and extract each page as an image. I've been able to do this with ImageMagick and GhostScript, but the results are incredibly bad quality. I've tried many different output ...
YorSubs's user avatar
  • 959
1 vote
1 answer
183 views

How can I allow ImageMagick to convert a grayscale png to an ico file without errors?

I have a grayscale PNG, and when trying to use ImageMagick (Version 7.1.1-28) to create an ICO file it always gives me the following warning: $ convert favicon.png -define icon:auto-resize=16,32,48,64,...
Dan Herbert's user avatar
  • 1,801
1 vote
1 answer
84 views

Can ImageMagick make my grayscale image brighter by "compressing" the black-to-white range to dark-gray-to-white?

I have a grayscale image with pixels ranging from black to white. I'd like to make it brighter by moving the "black floor" up, and scaling the other pixel intensities. I'd prefer linear ...
Anna's user avatar
  • 259
0 votes
2 answers
365 views

Why is this PNG converting to black JPG in imagemagick?

I swear this image was properly converting to a white-background JPG with black line art. Here is the original PNG (in case SE changes it when you upload). Here is what it looks like: But this is the ...
Lance's user avatar
  • 387
1 vote
2 answers
2k views

How to convert Samsung's motion photos to still photos?

I've taken a bunch of photos on my Samsung Galaxy phone after inadvertently activating the "motion photo" mode, which captures a short video clip before and after the "click", ...
Xavier Poinas's user avatar
2 votes
2 answers
122 views

How to prevent large file size in JPEG-PDF roundtrip conversion?

TL;DR: File size doubled in roundtrip conversion between JPEG and PDF. Tools used : poppler and imagemagick I am doing this Extract images from a pdf containing only images (scanned document), via ...
Abdullah Ibn Fulan's user avatar
1 vote
0 answers
281 views

How to fix error unable to read font in ImageMagick/Debian?

I'm running ImageMagick in WSL Debian and Ubuntu. I'm trying to write some text with ImageMagick but I getting font errors in both WSL linux versions: $ magick -background lightblue -fill blue -font ...
Rasec Malkic's user avatar
3 votes
1 answer
75 views

Is there an equivalent for ImageMagick’s “-shear” command in FFmpeg?

FWIW, I must run this on Windows platform. I have a series of videos shot in identical conditions (mounted camera shooting trains), all exhibiting the same rolling shutter effect when train passes. ...
user2349195's user avatar
0 votes
1 answer
444 views

Converting WebP files to GIF doesn’t work as expected. Resulting GIF is glitchy

I run command to convert WEBP into GIF but it's a bit "glitchy". Do I miss something? Debian: 11.8 ImageMagick: 6.9.11-60 Q16 x86_64 2021-01-25 convert -delay 10 sample.webp -loop 0 -...
Zakikun's user avatar
0 votes
2 answers
85 views

Some image files are deleted during output/moving with batch file

I've been having an issue for a while now with various versions of a batch file script I have been using to assist with listing items on my WordPress/woocommerce page. The script seems to occasionally ...
MonkeyNoodles's user avatar
1 vote
2 answers
503 views

Preserving transparent colors when converting svg to png

I have an SVG file that contains transparent colors like "#FF000080". When I convert the SVG to PNG using ImageMagick, the transparent colors are converted to black. (Any colors without an ...
user avatar
4 votes
1 answer
278 views

Replacing a color using -transparency regardless of existing pixel opacity, using ImageMagick

I have a colorful image that has alot of existing transparent background, but also a few blocks of hot pink rgb(255,0,255) color I want to additionally become transparent. I'm doing so like this: ...
Jamin Grey's user avatar
2 votes
1 answer
377 views

Make a GIF image with an exact given byte size

For a specific task (replace an image inside a firmware without any data offset shifting), I need to create a GIF file of size 409x240 pixels of exactly 6449 bytes: offset 0-5: GIF89a (magic string) ....
Basj's user avatar
  • 1,916
0 votes
1 answer
152 views

How to composite images with offsets and scaling into a single image?

I would like to use imagemagick to create a mosaic. I have a list of images along with their individual offsets and scales, for example: a.jpg, translate to 0,0 and scale to 100% b.jpg, translate to ...
Ana's user avatar
  • 1,671
2 votes
1 answer
384 views

Best ImageMagick parameters to upscale image containing text

What are the best ImageMagick parameters to upscale an image that contains text in Latin alphabet? Take this image as example: I did some experimenting, for example: magick convert in.png -filter ...
robertspierre's user avatar
1 vote
0 answers
66 views

Is it possible to separately run image magick commands on certain pages in a pdf documents, then combine it all into one pdf?

I'm a student and have exams coming up. I'm trying to remove solutions from some online resources I've found to study from. The solutions were all written in red text under Short Answer (SA) questions ...
Musa Khattak's user avatar
0 votes
2 answers
149 views

Merging a folder of 34,000 images in Photoshop

I have a folder of 34,000 images (all the exact same size) and I would like to layer them all on top of each other, doing something equivalent to Photoshop's "Darker Color" layer blending ...
dongle's user avatar
  • 121
0 votes
1 answer
354 views

ICO of 32-bit images

Requirement I'm using this shell script to create an ICO file to fulfill this requirement: Icons should be Windows .ico files and contain 32-bit images in the following sizes: 16, 24, 32, 48, and 256....
Megidd's user avatar
  • 270
0 votes
0 answers
35 views

ffmpeg Is not compitable with minikube

I have one pod in minikube which is for video editing task and I am using the moviepy library. There is issue occurring Failed to read file duration and I debug the deep down code and found the cause ...
Nikhil Shingadiya's user avatar
10 votes
4 answers
3k views

How to resize an animated webp?

I want to be able to change the size of a dynamic webp. Sample picture. I found this website to do just that. So how can I implement something similar in my own program? I tried using ImageMagick7 or ...
shsf's user avatar
  • 113
1 vote
1 answer
117 views

Is it possible to input a HSB color value and get its corresponding HEX color code as an output?

Let's say I have a colour in HSB format 120,100,100 and I would like to get its corresponding HEX code, which is 00FF00. Is it possible to achieve this with ImageMagick? Perhaps Something like: Magick ...
Ralf_Reddings's user avatar
8 votes
1 answer
942 views

How to create PocketBook-compatible BMP files using ImageMagick?

PocketBook 611 is a black-and-white e-book reader. PocketBook 611 (and models of similar age, before touch displays were introduced) uses a very specific BMP format for its so-called "Power-off ...
andrybak's user avatar
  • 717
0 votes
0 answers
401 views

What can I do to fix ImageMagick in Catalina?

I tried to check installations of ImageMagick then brew. In a classic case of knowing just enough to cause trouble the diagnoses are more complicated than I know how to treat. Hoping for a second ...
Pamelane's user avatar
2 votes
0 answers
319 views

How to process images of documents to look like a scan?

Assume that I have photos of several text documents and presentation slides captured using my smartphone camera. Due to uneven lighting, these photos have color and brightness gradients. Also, the ...
user's user avatar
  • 21
4 votes
1 answer
8k views

How do I print an image to a fixed size over multiple pages?

I want to print an image that is 52x44 cm using letter sized pages in Windows 10. So it's similar to this question, but I need to print an image that is larger than one page. Presumably it will take ...
Aaron Kreider's user avatar
0 votes
1 answer
201 views

is JPEG artifact in any case unavoidable when increasing image size?

When I increase the image size to 200% or higher , the JPEG artifacts (ugly dots around sharp edges) are clearly visible. Same goes for PDF files that are lossily compressed. Are there no compression ...
medukia's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
17