473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Opnion needed on image manipulation (not neccesarilly PHP)

Hi there,

i have a site for some friends who are abbroad for school.
it has a mysql guestbook and a few other things to communicate.
it also needs a photo-album on it.

now since my friends don't have a computer of their own over there,
they can't install a small app to reduce the size of the digital cam's
pics.

now my question, what would be the best way to reduce the size of the
pics
to approximately max. 500 px * 500 px.
I could use PHP of course, but i'm not really satisfied with the
quality of
PHP-resized images... (it's ok for thumbnails, but not for the large
versions...)

i hope it's all clear..
any clues out there?

any help is greatly appreciated!

Jul 17 '05 #1
4 1486
On 30 May 2005 03:10:26 -0700, "frizzle" <ph********@gmail.com> wrote:
now my question, what would be the best way to reduce the size of the
pics
to approximately max. 500 px * 500 px.
I could use PHP of course, but i'm not really satisfied with the
quality of
PHP-resized images... (it's ok for thumbnails, but not for the large
versions...)


PHP's image functions are based on GD, which as you say are not great for
photographic images.

ImageMagick does a better job on photographs - although you usually have to
call it as an external process. It's also faster.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
Andy Hassall <an**@andyh.co.uk> wrote:
PHP's image functions are based on GD, which as you say are not great for
photographic images.
Funny, I never noticed this... What is the problem of GD with
photographs? I don't see anything wrong...
ImageMagick does a better job on photographs - although you usually have to
call it as an external process. It's also faster.


I've heard this before somewhere else about a year or two ago. I
searched for benchmarks and found that sometimes gd is faster, sometimes
imagemagick IIRC. A link to usefull benchmarks would be nice.

Jul 17 '05 #3
On 30 May 2005 12:36:47 GMT, Daniel Tryba <pa**********@invalid.tryba.nl>
wrote:
Andy Hassall <an**@andyh.co.uk> wrote:
PHP's image functions are based on GD, which as you say are not great for
photographic images.


Funny, I never noticed this... What is the problem of GD with
photographs? I don't see anything wrong...


I haven't got any side-by-side examples to show here, just vague memory of
last time I used it (for a bunch of employee photos) where I'm sure I got very
slightly better thumbnails out of imagemagick.

Although the difference likely isn't huge unless you hit one of the gotchas
such as not using true colour mode in GD.
ImageMagick does a better job on photographs - although you usually have to
call it as an external process. It's also faster.


I've heard this before somewhere else about a year or two ago. I
searched for benchmarks and found that sometimes gd is faster, sometimes
imagemagick IIRC. A link to usefull benchmarks would be nice.


Michael Rostkowski posted a set of benchmarks a while back:
http://groups.google.co.uk/group/com...76e8f1a175b4ed

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4
Daniel Tryba wrote:
Andy Hassall <an**@andyh.co.uk> wrote:

PHP's image functions are based on GD, which as you say are not great for
photographic images.


Funny, I never noticed this... What is the problem of GD with
photographs? I don't see anything wrong...

I find that nearly all resized photo images need some touch up with the
unsharp mask or they look a bit blurred. That is why I started using
ImageMagick.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: stijngoris | last post by:
Hi all, I have some questions regarding image manipulation: - Is it possible add an alpha channel to an image via PHP? - Can I multiply an image with another image creating a new image? I want...
6
by: Giggle Girl | last post by:
Overall Background: I am in charge of migrating an already-made Content Mangement System from ASP to PHP. I do not know PHP -- yet! I am trying to foresee potential issues, and here is one. ...
9
by: Job | last post by:
Hi, I would like to find out what ASP/ASP.net can do with image manipulation. Does ASP have built in functions (eg. after upload to server) to manipulate images, like rotate, scale, crop etc.?...
3
by: peterf | last post by:
Posted in alt.comp.lang.php before I saw how much more active this group is... Hope someone can help. I am new to this group and needing a little bit of guidance. First off I need to say that...
1
by: goldtech | last post by:
Is there a way to create thumnails with a script in PHP with safe mode ON? We want to keep safe mode ON for our server but beable to automatically create thumbs from full size image files. Is...
9
by: zacariaz | last post by:
I dont know, and i dont much like javascript, however, i am told that the only way to do want i want to do, is with javascript, so here goes. zoom and cut is the only features i need. 1. the...
5
by: bizt | last post by:
Hi, I have a PHP program on my webspace that I use to upload images. As the images are about 500KB each, I would like to create a preview thumbnail image with smaller image dimensions than the...
8
by: shotokan99 | last post by:
i have this situation. i have a query string: http://www.myquerystring.com?x=xxxxx what this url does is it will return or start downloading a .png file. what i wanted to do is trap this png...
12
by: laredotornado | last post by:
Hi, I'm using PHP 5. I was wondering given an image, a.jpg, how can I make an image that would look like you slid a white index card (which I have a file, white.jpg with the same dimensions as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.