» Home » Imagick » Page 1
how to translate Imagick -fill command to PHP imagick class?
by Mai72 in PHP

The command that works in the terminal is


convert image.jpg -clone 0 -fill '#330000' -colorize 100% -clone 0 -colorspace gray -negate -compose blend -define compose:args=100,0 -composite image.jpg

How can I translate this command into the php imagick class methods?


Get/set DPI with PHP GD/Imagick?
by monkee in PHP

I'm building a Web application that will handle image files that will ultimately be printed, large format.


As part of this, I need to get (i.e. read) and set (i.e. change) the DPI of an image file.


Is this possible through PHP GD or PHP Imagick?


Thanks,


BK


Edit:

The DPI of a image can be accessed through iMagick's getImageRe

TAGS : with Imagick

Pdf to image using php-imagick api
by Paul McKee in PHP

i want to convert the PDF to image.But when the out put image generate it's get blur from original.Here is code


$uploadfile = ".pdf[53]";
$img = new Imagick($uploadfile);
$img->setResolution(300,300);
$img->resampleImage(150,150,imagick::FILTER_UNDEFINED,1);
$img->resizeImage(512,700,Imagick::FILTER_LANCZOS,0);
$img->setImageFormat('jpeg');
Crop bug in PHP Imagick?
by chorn in PHP

I was trying to crop the animated gif and in the output i'm getting the same sized image, but cropped.


A lot of empty space is filled with canvas.


For example i had animated gif 600x100, but have requested 100x100 crop, on the output i'm getting 600x100 image with cropped image and empty space.


Someone knows the solution for this issue?


$gif =
TAGS : Crop Imagick

Convert .psd and .ai to PNG/JPG with imagick
by mitry in Programming Languages

I'm creating thumbnails for a Digital asset manager, what is the best way to do this with imagemagick?


is there good resource out there?


resizing with php imagick
by BSim500 in PHP

I am uploading images and resizing them to 300x200 pixels


i'm using the imagick extension and specifically the adaptiveResizeImage() function.


when uploaded using bestfit there is a lot of whitespace on the sides of the image (depending on portrait or landscape).


what i'd rather it did was resize to fill the entire area (no whitespace) and crop the longer len


Imagick PDF first site
by Gold in Programming Languages

If i upload a pdf file with more than 1 page it will show the last page. What should i change in coding to show only the first page?
Here is the code i using to convert.


$impdf = new imagick( DATA_SERVER_PATH."/uploads/".$this->uploadFileDirectory.$itemID."/".$_POST['main_file'] )';
$impdf->setImageFormat('jpeg');
$impdf->writeImage(DATA_SERVER_PATH."/uplo
TAGS : Imagick first site

Imagick not working
by cyclohexane in Programming Languages

I am working on creating thumbnail image from the first page of pdf file. I almost tired every solution available on the web to make ImageMagick running but I still get the following error


Fatal error: Class 'Imagick' not found in C:wampwwwmediaboxapplicationcontrollerscron.php on line 153

what I have done so far.


Installed GPL Ghostscript
Insta
TAGS : Imagick working

Imagick montage with PHP
by Zack Harvey in PHP

I want the functionality, but I can't for the life of me figure out what to do with the function described here: http://php.net/manual/en/imagick.montageimage.php . Googling has been unproductive so far.


I have read this http://www.imagemagick.org/Usage/montage/ and it seems easy enough in command line, but how do you specify the URLs to operate on in PHP?


I've also seen


imagick with remote url
by daveybrat in Programming Languages

here imagick works for image which are stored in server.. but i dont know how to work if i replace with remote url in $paths array


$background = new Imagick('back.jpg');
$paths = array(
"img/1.jpg",
"img/2.jpg",
"img/3.jpg",
"img/4.jpg",
);
$images = new Imagick($paths);
foreach($images as $i

Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .