Search found 9 matches

by carlosgoce
2012-05-18T10:17:11-07:00
Forum: Users
Topic: Working on SSH but not on PHP
Replies: 4
Views: 8184

Re: Working on SSH but not on PHP

I dont know if this have any sense but i fixed it (it seems to be) installing imagemagick with ./configure --without-threads and then make && make install

And now its working.
by carlosgoce
2012-05-18T07:53:46-07:00
Forum: Users
Topic: Working on SSH but not on PHP
Replies: 4
Views: 8184

Working on SSH but not on PHP

Hi, a few weeks ago i posted my problem and finally i got the solution. Or that is what i thought. The problem is still there.

When i use this via SSH
"/kunden/homepages/39/d296597816/htdocs/imagick6.7/bin/convert input.jpg -scale 600x300 -background white -gravity center -extent 600x300 output.jpg ...
by carlosgoce
2012-04-26T15:59:12-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Re: Resize Image, Keep aspect ratio and fill blank space

I think that i have an idea.

The problem is with big pictures and now i get better results using -thumbnail instead of -resize. But the biggest pictures are still a problem.

Wich command is the more fast and less processor-eater (don't know how to say that on english) to resize?


EDIT:
Finally i ...
by carlosgoce
2012-04-26T15:28:27-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Re: Resize Image, Keep aspect ratio and fill blank space

Hello,

when i use /usr/bin/convert
i only get 1 directory:
/usr/bin/convert

But i recently instaled imagick 6.7 on my home directory dont know why dont appears on the list. I tried to use fullpathto/myhome/directory/bin/convert and still the same issue. Maybe the instalation is wrong?

I going to ...
by carlosgoce
2012-04-26T14:32:44-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Re: Resize Image, Keep aspect ratio and fill blank space

Hi Again, thank you very much for your help.


<?php
exec("/usr/bin/convert tal.jpg -resize 100x100 -background white -gravity center -extent 300x50 nuevo.jpg 2>&1", $out, $returnval);
foreach($out as $text)
{echo "$text<br>";}
?>


When i try with this, i get this error:
Warning: exec ...
by carlosgoce
2012-04-26T07:15:25-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Re: Resize Image, Keep aspect ratio and fill blank space

The command is
convert input.jpg -resize 300x50 -background white -gravity center -extent 300x50 output.jpg

Version: ImageMagick 6.6.0-4 2012-03-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
The OS is Linux Debian 6.0.4.

When i use ...
by carlosgoce
2012-04-25T16:56:59-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Re: Resize Image, Keep aspect ratio and fill blank space

Here i'm again!

One last problem (i hope). With the previous code it works ok
convert input.jpg -resize 800x600 -background black -compose Copy -gravity center -extent 800x600 output.jpg

The thing is, when the height is really low imagemagick do a strange thing. Just see this:
This is width:600 ...
by carlosgoce
2012-04-25T15:46:59-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Re: Resize Image, Keep aspect ratio and fill blank space

When i try with your code i get the following error:
"unable to open image '800x600'

I'm using ImageMagick-6.7.6-7 on a 1&1 server. The SO is Linux Debian 6.0.4.

But i'm testing on Windows 7 with Xampp and i think imagemagick version 6.3 or above.

EDIT:
Yeah you was right, it works perfect on the ...
by carlosgoce
2012-04-25T08:43:36-07:00
Forum: Users
Topic: Resize Image, Keep aspect ratio and fill blank space
Replies: 12
Views: 66147

Resize Image, Keep aspect ratio and fill blank space

Hello,

First of all, excuse my English. I was trying for three days and tried everything and couldn't solve this.

I just want to scale random images (portraits and landscapes) to a determined size for making thumbnails. Here is the problem:
If i want a size of 100x100 its impossible to fit a image ...