Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Lossy?

Are you working with true colors when making your thumbnails?

Check out this (somewhat sloppy) thumbnail code that I'm using...

http://flareupload.pleh.net/quickthumb.txt

It creates true-color PNG thumbnails out of anything GD can read. Pass mkthumb the source directory (of the main image), the target directory (where thumbs are stored), the filename of the image in the source directory, and an optional flag to force recreation of the thumbnail.

Right now all the error checking bits at the bottom are commented out so that it won't kill the script when trying to thumbnail, say, a text file.

The thumbnail viewer calls this function for every large file it finds, thus creating the new thumbnails on the fly... no need to run it as a separate app.

(FlareUpload is pretty nifty, ain't it? )


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Entire Thread
Subject Posted By Posted
Dynamically creating and displaying thumbnails.... Tom_H 02/12/2004 1:55 AM
Re: Dynamically creating and displaying thumbnails.... Charles Capps 02/12/2004 2:16 AM
Re: Dynamically creating and displaying thumbnails.... Tom_H 02/12/2004 2:26 AM
Re: Dynamically creating and displaying thumbnails.... Charles Capps 02/12/2004 3:00 AM
Re: Dynamically creating and displaying thumbnails.... Tom_H 02/12/2004 3:34 AM
Re: Dynamically creating and displaying thumbnails.... Charles Capps 02/12/2004 8:36 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2171
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 16
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)