Questions tagged [imagemagick-convert]

The "convert" command, from the ImageMagick® software suite is a program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

1387 questions
0
votes
1 answer

How can I write this command line command in Perl using the ImageMagick API?

How can I do the same as the following command line command in Perl using the ImageMagick API? convert scotland.jpg[1x1+0+0] -depth 8 txt: The result should look similar to this: # ImageMagick pixel enumeration: 1,1,255,rgb 0,0: ( 48, 50, 47) …
Thariama
  • 50,002
  • 13
  • 138
  • 166
0
votes
1 answer

Using ImageMagick to generate thumbnails for images stored in Amazon S3

I'm looking to use ImageMagick's convert utility to make thumbnails for images stored in S3. I'm writing this in Python. How should I approach this? Should I read the image from S3, save it to a temporary folder on an EC2 instance, generate the…
ensnare
  • 40,069
  • 64
  • 158
  • 224
0
votes
1 answer

Using ImageMagick's "convert" utility as a Python subprocess

I'm looking to convert a large directory of thumbnails. Instead of using the PythonMagick wrapper I'd like to access the convert binary directly (I have a lot of flags, and think this would be more efficient for a large quantity of photos.) Are…
ensnare
  • 40,069
  • 64
  • 158
  • 224
0
votes
0 answers

Converting TIFF Alpha Channel from Unassociated to Associated

For a dynamic imaging application I'm building, I have to take an image created by a rendering package and place it in an InDesign file. Because it needs to be CMYK with transparency, TIFF is the only possible format to use. The difficulty I'm…
Scott Buchanan
  • 1,163
  • 1
  • 11
  • 28
0
votes
1 answer

dynamically converting tiff images to jpg in php

How to dynamically Convert Tiff Images to jpeg using PHP, and Imagemagic .pls help as im new to php programming
HotSpot
  • 19
  • 2
-1
votes
2 answers

Imagemagick: How to improve the brightness/contrast of an image with a narrow histogram?

I have a dark image which histogram lies in a tight group. In image editor I can convert image int HSL colorspace, separate L channels and make histogram adjustment. Is this the right way? Which next steps are necessary to do? Is there a…
-1
votes
2 answers

ImageMagik Combining JPGS in folders and subfolders into PDFs

I have a script that, when I right click on a folder, combines all pngs/jpgs/tifs inside the folder into a PDF and renames the PDF to the name of the folder it resides in. cd %~dpnx1 for %%a in (.) do set currentfolder=%%~na start cmd /k magick…
-1
votes
2 answers

How to convert image buffer to file object in NodeJS?

Purpose How do I make a file in the same path in NodeJS in the same form as client request form? // test.js const readFile = fs.readFileSync(filepath, (err, data) => { if (err) { console.log(err) } else { return data } }) // result :…
jony woong
  • 39
  • 1
  • 8
-1
votes
1 answer

"Illegal Instruction" when running Imagemagick on Raspberrypi (Buster)

I have a Pi that's running Raspbian Buster: uname -a Linux myPi 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux I did install Imagemagick: $ sudo apt install imagemagick -y Reading package lists... Done Building dependency tree …
Besi
  • 22,579
  • 24
  • 131
  • 223
-1
votes
1 answer

Running convert several times for one file

I wish to run the following four operations on each of a large number of files in a directory. Is there a more efficient (faster) way of doing this? Where me.png is one of the files. composite -compose change-mask background.png me.png…
Baz
  • 12,713
  • 38
  • 145
  • 268
-1
votes
1 answer

Imagemagick convert uses heavily disk resources

on my local machine, I wrote a script that uses ImageMagick's convert many times. One of the most used commands is this: convert -size 4200x5100 xc:blue sth.jpg . On my local machine, it runs about 1s, which is OK. It does not use too many…
user2194805
  • 1,201
  • 1
  • 17
  • 35
-1
votes
1 answer

automatically extract tiles from comics

Is it possible to automatically extract tiles from comics, with an existing tool like ImageMagick or should I code a tool myself? I have seen answers using ImageMagick (Using imagemagick how can i slice up an image into several separate images?,…
-1
votes
2 answers

How to write convert jpeg to png on python?

I need to write script in Python, like this with options: Enable PNG transparency Treat similar colors as transparent. 5% How can I do this? Potential solutions ffmpeg, imagemagick
soc17302
  • 1
  • 1
-1
votes
1 answer

How to save output from bash script to image file with convert imagemagick

Hi gus i'm just trying to save my output script to image file with convert imagemagick , but i have an issue with the result did any clue for fixing my issue ? the image file isnt generate in the right way , here my script result is here and i run a…
sudo3rs
  • 3
  • 2
-1
votes
1 answer

How to undo or remove the drawn rectangle using Convert?

I have used convert this to draw a rectangle on image now i want to undo this the how? help? convert Image1.jpg -fill black -draw "rectangle 135,55 155,60" Image2.jpg
Dhav
  • 1
  • 6