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.
Questions tagged [imagemagick-convert]
1387 questions
-1
votes
1 answer
Achieving same PDF compression as imagemagick's convert using ghostscript
Is there a way to achieve the same compression than (great compression ratio and quality but it's slow and can break pdfs):
pdfimages -tiff $1 pdf_images
convert pdf_images-* -alpha off -monochrome -compress Group4 -density 250…

nathan
- 9,329
- 4
- 37
- 51
-1
votes
1 answer
How to convert command imagemagick to php code?
I want use OCR. But the images can't read perfectly, so i'm converting image to delete noise background, Original Images.
then, i'm run this command :
convert -colorspace gray -modulate 120 -contrast-stretch 10%x80% -modulate 140 -gaussian-blur 1…

testonID
- 18
- 6
-1
votes
1 answer
Identifying whether a jpg image is blank using RUBY programming
I have an input image known as test.jpg. I want to create a function in Ruby which will identify if the image is blank and return a boolean value true or false.

Yash Madane
- 27
- 6
-1
votes
1 answer
how to make this effect with imagemagick
The backgroud pic:
background
The final effect:
gif effect
How do I make the red heart move and cover the background text?
I have tried this:
Convert back.png ( -clone1 -gravity center -geometry +10+10 heart.png ) (-clone 1 *******)
This just…

lion c
- 47
- 1
- 3
-1
votes
1 answer
Effective gravity at high density - ImageMagick
At a high density like 300 dpi other than the default density 72 dpi the following ImageMagick convert command outputs blank pages. It looks strange to me.
"convert -units PixelsPerInch -density 300 $myfiles -page A4 -gravity center…

Klanto Aguntuk
- 719
- 1
- 17
- 44
-1
votes
1 answer
Imagemagick crop from northeast
I am trying to crop an image starting from top-right and cut out a 48x48 box.
This is the image I'm working with
I've tried this
in.png -gravity northeast -crop 48x48 out.png
out-0.png
out-1.png
out-2.png
out-3.png
Which creates like 4 files,…

knuxyl
- 129
- 3
- 12
-1
votes
1 answer
Using Magick++ with Tesseract
I wish to combine Magick++ with Tesseract OCR. I couldn't send Magick++
Image
object to Tesseract
setImage(const uchar*,int width,int height,int byte_per_pixel,int byte_per_line);
method. It doesnt have byte_per_line information.
Thanks for…

Grayowl
- 77
- 3
- 12
-1
votes
1 answer
Can you help me get rid of an intermediary output in my imagemagick convert commands?
I have the following convert command in bash.
convert "$WALLPAPER1" -resize "${H[0]}"x"${V[0]}"^ -gravity center -crop "${H[0]}"x"${V[0]}"+0+0 "$WALLPAPERS/.temp1.jpg"
convert "$WALLPAPER2" -resize "${H[1]}"x"${V[1]}"^ -gravity center -crop…

deanresin
- 1,466
- 2
- 16
- 31
-1
votes
3 answers
library to convert pdf to image
Hi friends I'm new to Codeigniter . In my new project i've a task to upload a pdf file and i've to convert it to an image . could any one suggest me solution is there is any library function to convert it and also get me some working code if…

user1894647
- 613
- 3
- 11
- 22
-1
votes
1 answer
how do i place a 4 * 6 image on a letter page at the top
I am using imagemagick to convert files and reposition them, i have a 4 * 6 png which i need to position on a letter canvas on the top half of the page.
I have the below command which i am using, but its confusing. can anyone suggest how i can…

opensource-developer
- 2,826
- 4
- 38
- 88
-1
votes
3 answers
Cropping a JPG without loading all of it in memory
How can I crop a big JPG and extract a small portion of it?
The problem is main JPGs are so big and I can't load all of it in memory.
I used convert.exe from ImageMagick, but it's not working properly on all versions of windows and I prefer some C#…

AVEbrahimi
- 17,993
- 23
- 107
- 210
-1
votes
1 answer
convert whiteboard cleaner script to php
I'm trying to convert this Imagemagick whiteboard cleaning script to pure PHP using the imagick extension to avoid having to resort to spawning processes with exec or the like.
Original bash script:
#!/bin/bash
convert $1 -morphology Convolve…

Nev Stokes
- 9,051
- 5
- 42
- 44
-1
votes
1 answer
word image im imagemagick
I want to create an image containing "word" as an image which is centrally assigned . I used the following command :
echo "word" | convert -font Helvetica -pointsize 32 label:@- cmd.png
but the resulting image I got does not centrally align the…

Deepesh
- 99
- 2
- 11
-1
votes
1 answer
does ImageMagick open font file every time?
While i am using ImageMagick "-font" option to annotate images with text, such as:
convert my-file -font my-font.ttf ...
Will my-font.ttf be opened every time when i issue that command?
ps, i am using paperclip/rails to annotate images with text,…

philip1134
- 3
- 2
-1
votes
1 answer
Automatically export JPGs for each level from a multilevel Gimp image
What i say in the title is what i'm doing manually right now for 30 levels!
I'm building different color tshirt previews, every level represents a color and there's a level on top with the draw to be printed.
If I can do it automatically I'll have…

user2642265
- 7
- 3