By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,562 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,562 IT Pros & Developers. It's quick & easy.

Moving from ASP to PHP: Image questions

P: n/a
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.

Image Specific Background:
The ASP version of the CMS uses a 3rd party component to accept the
uploading of images, and then to resize them so that thumbnails are
made (as well as the original image) for photo albums.
From what I have researched, new releases of PHP have image

manipulating abilities built-in to the language. But most of what I
have seen is "real-time" conversion where the PHP spits out a stream of
manipulated images. I want to be able to make a thumbnail for each
image, which will be saved to the server, and then reference this
thumbnail in a database.

Can someone point me to code that relates to this?

Or offer their thoughts on this? Any forseeable problems, especially
related to File Writing (making a new image) or shortcomings of
built-in image manipulation capabilities? (In the 3rd party ASP version
we had to get a really old version of a component that allowed GIF
manipulation, due to licensing issues, for instance.)

Any thoughts from PHP developers are appreciated!

Thanks,
Ann

Nov 7 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Giggle Girl wrote:
<snip>
From what I have researched, new releases of PHP have image
manipulating abilities built-in to the language. But most of what I
have seen is "real-time" conversion where the PHP spits out a stream of
manipulated images. I want to be able to make a thumbnail for each
image, which will be saved to the server, and then reference this
thumbnail in a database.

Can someone point me to code that relates to this?


1. http://www.google.com/search?q=php+thumbnail
2. http://www.sum-it.nl/en200319.php3

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Nov 7 '05 #2

P: n/a
JDS
On Mon, 07 Nov 2005 10:30:48 -0800, Giggle Girl wrote:
In the 3rd party ASP version
we had to get a really old version of a component that allowed GIF
manipulation, due to licensing issues, for instance.


GIF Licensing issues are moot anymore:

http://www.unisys.com/about__unisys/lzw

--
JDS | je*****@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

Nov 7 '05 #3

P: n/a
Giggle Girl wrote:
Overall Background:
I am in charge of migrating an already-made Content Mangement System
from ASP to PHP.
You might find asp2php helpful (http://asp2php.naken.cc/)
From what I have researched, new releases of PHP have image

manipulating abilities built-in to the language. But most of what I
have seen is "real-time" conversion where the PHP spits out a stream of
manipulated images. I want to be able to make a thumbnail for each
image, which will be saved to the server, and then reference this
thumbnail in a database.


There's lots - try searching for PHP & thumbnails at freshmeat.net.

If you're running on Linux, there are lots of CLI based tools which will do
the job a lot better than I could using the GD library. Invoking shell
based programs (and their availabilty) is not so good on a MS platform
though. Last time I checked, the GD lib still doesn't do GIF saving - but
PNG gives better compression and supports larger pallettes anyway.

HTH

C.
Nov 7 '05 #4

P: n/a
I use gd lib
http://www.php.net/manual/en/ref.image.php
Make sure your host installs it.

Nov 8 '05 #5

P: n/a
> I use gd lib

Well, same here ... and I guess, png is doing lot better than what gif
does!
I want to be able to make a thumbnail for each
image, which will be saved to the server, and then reference this
thumbnail in a database.


gd will help you in that regard.

--
Raqueeb Hassan
Bangladesh

Nov 8 '05 #6

P: n/a
> I use gd lib

Well, same here ... and I guess, png is doing lot better than what gif
does!
I want to be able to make a thumbnail for each
image, which will be saved to the server, and then reference this
thumbnail in a database.


gd will help you in that regard.

--
Raqueeb Hassan
Bangladesh

Nov 8 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.