ImageMagick

Applying a logo to a tshirt using PHP Imagick

半腔热情 提交于 2020-02-04 05:52:07
问题 I'm new to imagemagic aka imagick on php and im trying to follow this thread using php code. I have tried to apply this logo onto a tshirt but couldn't do so by following the threas becuase i cannot find most of the methods in php like using displacement map to start with. What i have tried is the following code: $image = new Imagick($_SERVER['DOCUMENT_ROOT'] . '/images/VYLZsoD.jpg'); $logo = new Imagick($_SERVER['DOCUMENT_ROOT'] . '/images/logo.png'); $logo->resizeImage(200, 200, imagick:

Imagemagick images next to each other with proper margin

那年仲夏 提交于 2020-02-02 17:29:45
问题 I am trying to create a png file with a transparent background, in which I put images next to each other. My command so far is this: convert --% -bordercolor none -background none -gravity center logo.png -border 5x5 ( img1.jpg img2.jpg img3.jpg -border 5x5 +append ) ( img4.jpg img5.jpg img6.jpg -border 5x5 +append ) -append -border 5x5 -resize 720x480 output.png it creates me this image how do I have to change my command to make the image appear as following? (I made the background grey so

how to run imagemagik commands in PHP?

China☆狼群 提交于 2020-02-02 11:58:52
问题 i am trying to bend text using imagemagik in PHP. but the commands shown in the website are not working. http://www.fmwconcepts.com/imagemagick/texteffect/index.php how can i run these scripts in PHP ? somebody please help me.. NB :-t \'SOME ARCHBOTTOM TEXT\' -s outline -e arch-bottom -d 1.0 -f Arial -p 48 -c skyblue -b white -o black -l 1 -u lightpink 回答1: Translate them to the PHP ImageMagick API 回答2: dear you can use exec or passthru command to run image magic commands in php, no need of

How can I add a drop-shadow to an image using PHP?

大憨熊 提交于 2020-01-31 04:31:45
问题 I am looking for a way to add a drop shadow to an image using PHP. Before you answer or vote to close: I am not looking to do this using CSS or HTML. I want to generate an image file. This is not a duplicate of this question nor this one. I am looking for a very specific effect . For example, given this input image: I want to produce the following image: TL;DR: This image above was generated using Photoshop's Drop Shadow effect. I want a look very similar to that. For reference, here's the

How to fix Unhandled rejection Error: Could not execute GraphicsMagick/ImageMagick in AWS LAMBDA (NodeJS)

北城以北 提交于 2020-01-25 08:07:51
问题 Unhandled rejection Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%p" "/tmp/temp.pdf" this most likely means the gm/convert binaries can't be found I have tried everything mentioned in similar questions. This is my first lambda function and I am stuck. Please find below how I am adding gm into my lambda function index.js // dependencies var AWS = require('aws-sdk'); var simpleParser = require('mailparser').simpleParser; const gm = require('gm').subclass

display: unable to open X server

不羁的心 提交于 2020-01-25 02:58:08
问题 I am running ImageMagick on my Mac which runs on Yosemite. I have just downloaded ImageMagick and I am trying to open the logo display by running this on the command line: display logo.gif after executing the above command, I am getting the following error: display: unable to open X server `:0.0' @ error/display.c/DisplayImageCommand/426. I've implemented all the steps to install ImageMagick, including executing the following command: export DISPLAY=:0.0 and I am still not getting the display

Imagemagick - move/offset images within a tiled montage?

点点圈 提交于 2020-01-24 17:23:05
问题 Consider this example (Ubuntu 18.04, ImageMagick 6.9.7-4 Q16 x86_64 20170114): convert -size 300x100 xc:red red.png convert -size 100x100 xc:blue blue.png montage red.png blue.png -frame 5 -geometry '+0+0' -tile 1x redblue.png This gives the following image: What I'd like to do, is move the blue square on arbitrary x position "within its tile"; say align left edge of blue square to where 25% of the red rectangle width would be, or at 50% - or even align right edge of blue square with right

What is difference between setImageCompressionQuality vs setCompressionQuality - Imagick

妖精的绣舞 提交于 2020-01-24 14:46:26
问题 I found two methods in Imagick for set image compression quality A ) setImageCompressionQuality B ) setCompressionQuality so I want to know which one is best and why in below condition I read that setCompressionQuality method only works for new images (?) I am trying to compress a file jpeg/png $im = new Imagick(); $im->readImage($file); // path/to/file $im->setImageCompressionQuality($quality); // 90,80,70 e.g. $im->writeImage($file); 回答1: The method setImageCompressionQuality sets

What is difference between setImageCompressionQuality vs setCompressionQuality - Imagick

风流意气都作罢 提交于 2020-01-24 14:43:34
问题 I found two methods in Imagick for set image compression quality A ) setImageCompressionQuality B ) setCompressionQuality so I want to know which one is best and why in below condition I read that setCompressionQuality method only works for new images (?) I am trying to compress a file jpeg/png $im = new Imagick(); $im->readImage($file); // path/to/file $im->setImageCompressionQuality($quality); // 90,80,70 e.g. $im->writeImage($file); 回答1: The method setImageCompressionQuality sets

Autocropping images to extract inner black border ROI using Python

≡放荡痞女 提交于 2020-01-23 12:08:15
问题 I’ve been looking into OpenCV and Pillow (and ImageMagick outside of Python, especially Fred's Image Magick Scripts) to achieve the following: Auto identification of an inner black border in scanned Images and cropping of the images to this said border. Here is a blacked out example Image, the first is the "original" and the second one with a red highlight around the black border is what I am looking to achieve: The problem is that the border is not on the outside of the images and the scans