Search found 3 matches

by tugrul
2017-11-02T11:19:00-07:00
Forum: Users
Topic: Crop Image Using Outside of the Image
Replies: 5
Views: 5840

Re: Crop Image Using Outside of the Image

Thank you all.

My real reason is cropping image using PHP Imagick.

I just augmented some cropping strategies to use in PHP Imagick. I have to use -extent method to fit crop origin to 0,0.

Following code made my request.


<?php

$imagick = new \Imagick();
$imagick->setBackgroundColor('white ...
by tugrul
2017-11-02T05:39:23-07:00
Forum: Users
Topic: Crop Image Using Outside of the Image
Replies: 5
Views: 5840

Re: Crop Image Using Outside of the Image

Code: Select all

convert rose: -crop 70x45+0-10 crop.png
I wanted to:
canvas size have to 70x45 with 10 pixels transparent area top of the canvas.

result:
10 pixel transparent area is trimmed and final canvas size is 70x35
by tugrul
2017-11-02T04:24:15-07:00
Forum: Users
Topic: Crop Image Using Outside of the Image
Replies: 5
Views: 5840

Crop Image Using Outside of the Image

Crop command is working well using negative offset parameters but transparent areas are trimming.

How can i keep transparent areas outside of canvas on crop?