1,402 questions
0
votes
1
answer
60
views
org.im4java.core.CommandException: org.im4java.core.CommandException: convert-im6.q16: no images defined [closed]
I am trying to use im4java to create a jpg file with yellow text centered on a black background.
Using Imagemagick, the following command line works:
convert -size 1400x1050 -stroke yellow -fill ...
0
votes
0
answers
68
views
Convert SVG to BMP without anti-aliasing
I need to convert an SVG file to a BMP with no antialiasing at all.
I'm trying to simplify design entry for use with a program (atlc) which expects as an input a BMP file with only a very few select ...
1
vote
1
answer
50
views
Combining two ImageMagick commands for dynamic masking [closed]
I want to combine these two ImageMagick commands, the first one creates a greyscale mask by drawing and combining two gradients, then, combines the merged gradients with the extracted alpha channel ...
-1
votes
1
answer
48
views
When converting a PSD to a PNG, the black border shadow disappears using ImageMagick [closed]
When converting a PSD to a PNG, the black border shadow disappears using ImageMagick
Original Image:
After converting losing black border shadow using imageMagick:
When converting a PSD to a PNG, the ...
0
votes
1
answer
62
views
Cannot fill white triangles generated by 'Imagemagick -distort' with background color
Below is a bash script I have written to correct a certain type of skew produced in some scanned images of text.
The script works fine except for the final command, intended to change white background ...
-1
votes
1
answer
53
views
Colorize Specific Regions of an Image Using a Mask with ImageMagick
I'm trying to colorize specific regions of an image based on a mask using ImageMagick. The mask contains white pixels where the image should be colorized and black pixels where no colorization should ...
0
votes
0
answers
218
views
MissingDelegateError no decode delegate for this image format `EMF' converting image/x-emf to image/x-png
below python function convert emf format image to png.
from wand.image import Image
def process_image(self, image):
if image.content_type == "image/x-emf":
with image.open() as ...
-1
votes
1
answer
67
views
Imagemagick convert -thumbnail with out of bounds selected frame produces unwanted files
I'm new to imagemagick, my goal is to make a thumbnail from an image or a video with the selected frame. If I request an out of bounds frame, I'm expecting the command to fail and to not produce ...
-1
votes
1
answer
270
views
Split image of any size into to 4 quarters
I am trying to create a script that splits any input image into 4 different parts (2x2).
I tried the following:
convert "$1" -crop 50%x50% +repage output%d.jpg
With some input images it ...
-1
votes
1
answer
647
views
How to force PHP to use the new ImageMagick version?
Been at this for about 2 hours now, read about 20 articles on Google. Fired everything I had into the terminal and its still not working. Restarted Apache and PHP-FPM several times.
My Server ...
0
votes
2
answers
416
views
Add Text in the center of the image using ImageMagick
I am trying to draw text on the center of the existing image but not able to achieve desired result:
Here is so far i have tried
convert src-image.png -gravity center -pointsize 144 -fill red -...
0
votes
2
answers
135
views
Why does this imagemagick created white image not show transparency but the red one does?
When I use Imagemagick to overlay a pure white rectangle over a larger transparent canvas:
convert -size 2000x2000 xc:none -fill white -draw "rectangle 900,900 1100,1100" white_box.png
Then ...
0
votes
2
answers
346
views
Converting Kodak PCD Files to TIF?
I have a few dozen Kodak CD-ROMs (with a few thousand photo scans) from the early 2000s that contain PCD files.
I want to convert them to a maximum quality file (TIF?) for further processing in ...
-1
votes
1
answer
292
views
How to remove ringing/anti-aliasing/gradients from PNG with ImageMagick?
I am converting PNG icons to SVG, and results are better with sharp edges in the PNG. No gradients/anti-aliasing etc..
Results so far are ok, I am using a combination of -kmeans, -median, and -...
0
votes
2
answers
134
views
flatten layers aligned by centers instead of aligned by top-left corners
How can I overlap several images so that their centers are directly on top of each others'?
I use -layers merge instead of -layers flatten because flatten will crop images to fit inside the dimensions ...
0
votes
1
answer
436
views
How to composite more than 2 images with imagemagick?
How can I overlap several images on top of each other using imagemagick?
I have a base image layers.png:
I want to cut out different parts of the image and overlap them. E.g., overlap the skeletal ...
0
votes
1
answer
63
views
How to stop gravity option screwing up imagemagick parenthesised inputs?
I've been battling with this error (bug?) in imagemagick:
% convert \
> \( logo: -crop 100x100+300+300 -gravity west \) \
> \( logo: -crop 100x100+300+300 -gravity west \) \
> +append out.png
...
0
votes
1
answer
59
views
ImageMagick convert composite many crops from the same image?
I have a fairly complicated crop-rotate-splice command, here simplified just to crop:
magick "$INPUT" -crop "$WIDTH"x"$HEIGHT" "$DESTINATION"
I would like to ...
1
vote
1
answer
358
views
Convert image from NEF to TIF
I do photogrammetry with Nikon cameras. However, I've noticed that when I save my photos in grayscale in JPG format, I get images with three channels and slightly different values on each JPG with 3 ...
0
votes
1
answer
449
views
Error using pytorch-fid for datasets containing 5000 images
I am trying to calculate the FID between 2 datasets, using pytorch-fid. The GitHub link for the code is: https://github.com/mseitzer/pytorch-fid
Attempt 1:
I started off small, with 2800 images, all ...
0
votes
1
answer
70
views
Change opacity of lighten composition layer
I'm using the command below to overlay an image (../esrgan/{1}) with another image ({1}) that I scale to 400% and then apply lighten composition to.
parallel --bar --xapply convert {1} -filter Lanczos ...
0
votes
1
answer
138
views
Can mogrify resize an image differently, depending on its orientation?
I have folders of images that I'd like to resize to either 3000x2000 or 2000x3000, depending on the orientation.
When I attempt to resize the images like this:
mogrify -path 'thumbnails' -resize ...
-1
votes
1
answer
399
views
Batch edit pictures for album covers on Plex [closed]
On a Plex server running on a Debian 11 I have around 100 albums with the wrong aspect ratio cover art. Plex saving the pictures in several subfolders with the name “com.plexapp.agents.localmedia_*”. ...
0
votes
1
answer
118
views
Convert(ImageMagick) killed when batch processing jpgs
Linux CentOS7
Version: ImageMagick 6.9.11-22 Q16 x86_64 2020-06-29 https://imagemagick.org
I have a script that converts a set of jpgs into another set of jpgs.
convert -strip -interlace Line -resize ...
0
votes
1
answer
105
views
Remove all greyscale from image using QuickMagick
I want to remove all grey from an image using QuickMagick or RMagic in Ruby. I found this solution here: https://www.imagemagick.org/discourse-server/viewtopic.php?t=36051 for ImageMagick but I don't ...
1
vote
0
answers
240
views
Is there a way to convert WMF to PNG using imagick in PHP so that the Cyrillic alphabet in the WMF image is converted to Cyrillic in PNG without error
I am trying to create PNG images from WMF to view such files in a browser. WMF is a drawing of a part with a description table and text in Cyrillic. I'm doing this in PHP using imagick:
$image = new ...
0
votes
1
answer
567
views
ImageMagick - Add Transparent / Semi Transparent text watermark on Image
I need to create resized, lower quality image with transparent/semi transparent WHITE txt watermark.
As i`m not imagemagic expert i already do my researches and get to point of following command:
...
2
votes
1
answer
1k
views
ImageMagick Edge Detection - Picture To Line Drawing
I am trying to transform an image to line drawing, exactly like on this website (default settings):
https://tech-lagoon.com/imagechef/en/image-to-edge.html
I am using Image Magick to try to achieve ...
0
votes
1
answer
178
views
ImageMagick creating a RGB image from Grayscale image
I have a 32-bit floating point TIFF image that when I try to adjust it with ImageMagick it creates a sRGB image. No matter what I've tried, I cannot adjust the image that creates a grayscale image. ...
0
votes
1
answer
326
views
Cannot use "convert" to generate a .gif from a .pdf
I was looking into using tikz on latex to generate gifs, my example project is:
\documentclass[]{report}
\usepackage{tikz}
\begin{document}
\foreach \angle in {0,10,...,360}
{
\begin{tikzpicture}
...
0
votes
0
answers
222
views
How to use Imagemagick to convert a multi-page pdf to B&W while maintaining readability?
I have been trying to convert a multi-page color pdf to 2-color B&W (not grayscale).
Some research turned up the following command:
convert -posterize 2 input.pdf output.pdf
which worked, in that ...
0
votes
1
answer
44
views
How to (if possible) "undo" css overlay on PNG using ImageMagick?
I have screenhots of images that were made when the image had a CSS overlay rgba(0,0,0,.4) on it.
Here is the original image:
and an example of the html that would produce the overlay:
<html>
&...
0
votes
0
answers
83
views
Hindi Text not working properly in ImageMagick
I am using ImageMagick tool for creating some images with hindi Text but it's not working properly.
Fonts: https://fonts.google.com/noto/specimen/Noto+Sans+Devanagari
I have tried with below mentioned ...
0
votes
0
answers
61
views
Imagemagick: How to create a multy-layered tiff from all png files in the given folder using bash
I have a lot of PNG kept in a folder, and need to convert them all into single multy-layered TIFF using ImageMagick.
When I run this command on a desktop Windows, I get the needed TIFF.
magick *.png -...
1
vote
1
answer
389
views
How to distort an image using wand
I'm trying to the same that was asked in this old question but in python using wand.
so far I have done the following:
from wand.image import Image
from wand.display import display
# Paths to your ...
1
vote
1
answer
458
views
ImageMagick - converting from RAW to PNG brightens the image, but using an online converter doesn't
I have a large number of .ARW images that I need to convert to .PNG files for further processing. Using convert myimage.ARW myimage.png works, but brightens up the image significantly. How do I ...
0
votes
1
answer
150
views
How can I use the command prompt through a c# app to convert an image?
I am using MagickImage to convert images from my command prompt. However, it does not work when I try to use the same command with a c# process. Any ideas why that may be?
Here's my code:
`private ...
0
votes
3
answers
790
views
ImageMagick - Transform Outline Image to Perfect Black And White, WIth No Noise
I am looking for an image magick command that will help me transform black and white outline images (doodle sketches) to perfect white background and perfect lines (even no antialiasing) that are ...
0
votes
1
answer
139
views
I want to display two different font sizes of text in a composite image
Why do I want to display two different font sizes of text in a composite image, but only the first is displayed?
convert \( -resize "1000x1000^" -blur 50x5 "https://example.com/origin....
0
votes
1
answer
142
views
ImageMagick kmeans with alpha transparency
I want to apply kmeans to an image with an alpha mask. It should only work on the colors that are visible. I'm hoping to one-line it. Starting image:
Naively apply kmeans (whoops, all one color):
...
1
vote
2
answers
170
views
Overlapping pixels with convert -crop
Suppose i have a long chat screen which i want to split into the chunks. But i want overlapping between chunks for editing them after with Gimp.
I use right now like this:
convert chat.png -crop 100%...
0
votes
1
answer
476
views
Reduce PNG bytes by manipulating color type - not having success with ImageMagick
I am trying to see if I can reduce the bytes of a PNG by changing the png color type. I am trying to keep the dimensions as high as possible (100 or 150 ideally). The images are not complex and I ...
0
votes
0
answers
272
views
Converting .ps file to .jpg file
I tried to convert .ps file which replace in my home directory using
convert intensity.ps intensity,jpg
but i got some error
Error: /undefined in Standard+_Encoding
Operand stack:
Execution stack:
%...
0
votes
1
answer
170
views
imagemagick convert does not produce alpha gradient for specific image
I'm using convert to generate images with a fade gradient, converting images like this:
to images like this (note the fade at the bottom):
The source images (e.g., first image above) are PNGs ...
-1
votes
1
answer
387
views
How do we use stream and convert commands together in imagemagick
I do understand from the imagemagick documentation that we do use stream command for processing large images.
Imagemagick Stream Interface
The question i have is: how do we use the stream command in ...
0
votes
2
answers
196
views
Output PSD layers as base64 in JSON file using ImageMagick
I have a routine that uses PHP/ImageMagick to loop through a .psd and save the layers as PNG files. I now want to be able to output them as base64 in a JSON object instead without the intermediate ...
0
votes
2
answers
273
views
imagemagic create an image by repeating the given transparent .png image
I have a transparent ".png" image and I want to create a new image of the given width and height by repeating that image. When I do this command from console:
/usr/bin/convert -size ...
0
votes
1
answer
86
views
Imagemagic - converting pdf file together with png results in negated colors
I have a png file and a pdf file with two pages and I'd like to create a third png file with the content of the 3 images one on top of the other.
Running the following commands creates the file as ...
1
vote
1
answer
100
views
ImageMagick cropping with the incorrect dimension
I tried with cropping images to 5862x367. However, it crops to 367x5862. I tried the following code:
convert -crop 5862x367+0+0 +repage "/Users/ramakrishnanbalakrishnan/sites/img/test_in.JPG&...
0
votes
0
answers
29
views
When I tried to convert the PDF to an image, the resulting image can be different from the original PDF
When I tried to convert the PDF to an image, the resulting image can be different from the original PDF.
This is my pdf
this is convert pdf to image output file
The resulting image may have a ...