473,785 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1780
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
13087
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 - ImageName - for processing, or the return data which is done (or not as the case may be) by imagejpeg($img) in the script, after header("Content-type: image/jpeg"). Any insights would be most welcome, especially debugging techniques and a pointer to...
4
39496
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 printing, not web :) I read somewhere that you could do this: 200/300 = 0.667,
1
2578
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 user has to do is say yes or no to the questions that my program asks. I have coded until the part where once user thinks of an object and enters submit and the program asks him the first question. Now when the user enters yes/no for this first...
2
3114
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 connecting the two shapes. http://www.blackwaterbadgers.co.uk/image1.bmp Image 1 shows how if you have a line between two shapes, the line is straight. if you have more than one line, the lines will start overlapping
1
2837
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 to add text to a JPEG image. I want to make that text an hyperlink. 2) How do I insert another gif/jpeg image into an image generated using
0
1657
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 http://www.movingcompanies.co.il/international/ http://www.movingcompanies.co.il/local-movers/ http://www.movingcompanies.co.il/company/coupons-and-discounts.html http://www.movingcompanies.co.il/commercial/heavy-equipment.html...
0
1854
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 the country. allows you to easily obtain no obligation moving quotes from local movers, long distance movers, international movers, auto transport, storage rentals and specialty movers. office movers, commercial moving, residential moving, movers...
0
1783
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 the country. allows you to easily obtain no obligation moving quotes from local movers, long distance movers, international movers, auto transport, storage rentals and specialty movers. office movers, commercial moving, residential moving, movers...
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.