Skip to main content

Questions tagged [imagemagick]

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

imagemagick
-1 votes
0 answers
27 views

Composing multi function imagemagick command for resize, adding background, changing greyscale, apply image-kernel, get pixel value mean

I want to resize, add a background, change to grayscale, apply an image-kernel for finding edges, and lastly get the mean value of pixels in the image. What's wrong with my command?: "imagic\...
willko22's user avatar
0 votes
1 answer
53 views

imagemagick pipe to ffmpeg

I'm trying to write a batch file for a friend to make timelapse videos. I'm using avisynth, but she's even more clueless than I, so I tried to do most of the work with ffmpeg. What I'd like to do is ...
user26389289's user avatar
0 votes
0 answers
22 views

how to convert black-white png image to 8-bit and rgb color space png using imagemagick in linux? [closed]

I am writing grub theme which requires image format must be 8 bit and rgb. I create some whilte and black image with inkscape but can not find availeble way to convert the image to the above format. ...
knight zhao's user avatar
0 votes
1 answer
21 views

ImageMagick 'montage': How to append images horizontally and to add space between them?

I need to append two images horizontally, that is, on the left and on the right sides, and to add space between them. Here is what I use currently for this: magick montage input1.png input2.png -...
user avatar
0 votes
0 answers
20 views

ImageMagick Policy file correct but no effect

I use ubuntu 24.01 everything is installed correctly. Moviepy,ImageMagick, all the libs that i need. but when i try to generate TextClip with python here is the error I am having. Traceback (most ...
Emirhan Kartal's user avatar
-1 votes
1 answer
40 views

How do I combine multiple pairs of images?

The file names look like this: 363-main.jpg 363-overlay.png 364-main.jpg 365-main.jpg 365-overlay.png 366-main.jpg 366-overlay.png 367-main.jpg 368-main.jpg So there are many .jpgs that do not have ...
pcmila's user avatar
  • 43
0 votes
1 answer
43 views

get mime type and extension of image in variable or file without extension

I have telegram bot receiving a photo in webhook. I can download photo but not get file extension. How to get image extension and optionally mime-type from variable containing photo?
LeonidMew's user avatar
  • 502
-1 votes
1 answer
39 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 ...
Marinos An's user avatar
  • 10.5k
0 votes
2 answers
63 views

To change density so that image will be printed at the specified print size, in inches

The followig script creates a copy of the input image and changes its density so that the copy will be printed at a specified print size, in inches. For example, if you have a 100x200 pixel image and ...
user avatar
-2 votes
1 answer
46 views

Looking for a method to replace a PNG's transparent background with any other color in Linux without using ImageMagick [closed]

When given a png with a transparent background, even without any of it being visible it causes problems with the rest of my code, so I'm looking for a way to remove the transparent background either ...
Dylan Shi's user avatar
-1 votes
2 answers
51 views

How to accurately cut background and main object out from an image using masking method? [closed]

I have a image with the main object as the muffin and a dark background. Using a mask image, I wanted to get 2 different images, 1 for the background without the muffin, and another is the muffin ...
Jeremy's user avatar
  • 1
0 votes
1 answer
43 views

How do I format ImageMagick argument for Powershell script (array of points for drawing intersecting lines connecting hexagonal vertices)?

I'm trying to set up a project to interest nephew in design/coding (while learning myself). This snippet appears to work, but it's suboptimal and I can't figure out how to set $draw as array and call ...
bladeo's user avatar
  • 27
0 votes
0 answers
41 views

Rescale not generating the expected outcome

I am trying to reproduce some code from this repo: library(magick) #> Linking to ImageMagick 6.9.11.60 #> Enabled features: fontconfig, freetype, fftw, heic, lcms, pango, webp, x11 #> ...
Sinval's user avatar
  • 1,389
0 votes
0 answers
25 views

How to use Rmagick with pango and find the correct line width?

Ruby 3.3.2, Rails 7.1.3.3, ImageMagick 7.1.1-33, Rmagick 6.0.1 I use rmagick with pango and I want to calculate the correct number of lines as I'm dynamically selecting the font. In order to correctly ...
Vlad Fomenko's user avatar
0 votes
0 answers
71 views

Issues Converting PDF to Images in Node.js on Google Cloud Functions

I've been trying to convert PDF files to images using various methods and packages in Node.js. While the code works fine locally, it fails when deployed to Google Cloud Functions. I want to convert a ...
Adnan's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
623