473,395 Members | 2,783 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,395 software developers and data experts.

Moving from ASP to PHP: Image questions

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
6 1749
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
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
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
I use gd lib
http://www.php.net/manual/en/ref.image.php
Make sure your host installs it.

Nov 8 '05 #5
> 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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Gregory | last post by:
Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are either the variable that I'm passing in -...
4
by: Kevin | last post by:
Is there anyway to find out an image's DPI using GD? Can I change an image which is 300 DPI down to 200 DPI? I am fully aware of that DPI doesn't matter on screen, but these are to be used for...
1
by: sunaina | last post by:
This is the first program I am writing using PHP and Mysql. I am creating a game where user thinks of an object and my program guesses the object while asking series of yes/no questions. All a...
2
by: Carl Gilbert | last post by:
Hi I have a math kinda problem where I'm trying to split some lines when two or more lines connect two shapes. The reason I am doing this is to make it clear that there are multiple lines...
1
by: Hemanth | last post by:
Hello, Could anyone throw some light on the following questions, please? 1) How can I add a hyperlink to an image file generated using GD library? For eg., I'm using ImageString(...) function...
0
by: linkswanted | last post by:
http://www.movingcompanies.co.il/supplies/boxes.html http://www.movingcompanies.co.il/residental/ http://www.movingcompanies.co.il/commercial/corporate-moves.html...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
by: linkswanted | last post by:
We are your trusted source. World Moving & Storage is bonded and licensed by the U.S. Department of Transportation and is one of the largest residential moving and corporate relocation company in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.