.  

 

 

.
.

25 / 10 / 2014

Usuarios conectados: 12

Cargando documento...

Buscar:

.

Este Sitio:

Principal

Dreamweaver

Fireworks

JavaScript

CSS

Sonido

Artículos

Links

E-ufemismos

Descargas

Historial

 

Mailing List:

Suscríbete a la lista de correo, No practico spamming y ofrece algunas ventajas.

Pulsa aquí para saber más y suscribirte.

 

Recomendados:

Tecnorama >Dreamweaver Extensions

 

PHP Dynamic Thumbnail

Versión para imprimir | Translate this page

PHP/MySQL Server Model: With this extension you can generate thumbnails from the image names stored in your database.  Besides, it can open the original image in a popup window and display an optional image if there are errors (if image is not stored in the folder or the database field is empty, for example).

Requirements:

  • GD 1.x or 2.x installed on your server.
  • The DB field should store the image's name (as text) and not the image itself (as blob)
  • The image must be a JPEG file: it won't work with GIF's (GD does not support them) or PNG's (Explorer badly supports them).
  • The folder where images are stored must have write permissions.

Features:

  • Thumbnails are cached, saving systems resources.
  • An optional image can be displayed if an error occurs (if the field is empty, if image can't be found, if image is a gif...).
  • The code also checks if the image is a true JPEG file, checking its extension and its file type: Any file that it is not a JPEG (even if it has the *.jpg extension) will return an error (and will show the optional image). Only jpeg files with the extensions *.jpg and *.jpeg will work. The others will show the optional image.
  • A translator is included to put a placeholder where thumbnails wil be displayed
  • Works inside a repeat region. 

The extension window looks like this:

Images Folder: Browse to the folder where images will be stored.

Recordset/Image Field: Select the recordset and the field that stores the names. You must note that the join of the Images Folder path and the content of the image field should give a valid path.(For example: if you select the folder "../images" and the filename field in the DB returns "myimage.jpg" the code will search for the file "../images/myimage.jpg").

Width and Height: Only Width is important, because the code will generate the thumbnail using it (and height will be proportional). However, the Height value is useful for the placeholder (See image below).

Thumb Prefix: the thumbnails generated will be stored with this prefix and the thumbnail's width. For example the image "myimage.jpeg" can create a thumbnail called "thumb_200_myimage.jpg. It may sound a bit weird, but it has an explanation. Creating a thumbnail uses quite a lot of system resources, so I prefer to keep a copy with all the sizes that I will use. This way, if my thumb is 200px wide in one page and 300px in another, I can keep a copy of both of them ("thumb_200_myimage.jpg" and "thumb_300_myimage.jpg"). The next time the page is executed, it will use these files instead of creating new ones.

Add PopUp: If you check it, The users will be able to click on the thumbnail to open a popup window with the original image. 

Alternate Image: if an error occurs, this image will be displayed. Common errors should be: DB field is empty, the file can't be found or the file is not a jpg file. If you don't want to show an image, just leave this field blank and nothing will be displayed in the document.

And most important of it all: If you find a bug, please let me know!!!

Download it here (Current version:1.1.0)

June 21, 2004: New in version 1.1.0:

  • "OK" Bug: fixed
  • Improved GD Version Check
  • File extension bug: Fixed

TODO List:

-I'm thinking about adding a new feature to next release: I want to make it to delete orphaned thumbs automatically. I have some code already done and working, but I'd like to know your suggestions about it: Should it delete the files?, move them to another folder? Post your ideas as a comment below. Thank you!!

-I'll try to add an option to select thumbnail quality in thumnails.

Comments? 75, so far. Displaying 11 ->15

11.- Cartier jewelry is famous for its unique and fashionable style. The quality of our products is excellent and the the price is cheap and reasonable . That is because our knockoff Cartier watches,Replica Cartier rings,Cartier bracelets are directly purchase from the manufacturer. So you can spend the least money buying the best products that you need. There is no doubt that www.pensiongranada.com is your best place to choose Replica Cartier jewelry. We have various of products for you to choose, such as cheap Cartier rings, Cartier love bracelets, Cartier earrings and Cartier necklaces.
replica cartier tank watches

12.- lachicaartnmusic.com is one of the world's leading replica cartier online Fashion stores. Cartier which is well known as super watchmaker and jewelry supplier, has maintained a long history to world's celebrities and important figures, dating back to 1847. Replica Cartier store online stands out for high quality profucts with free shipping and best after-service. We are specialized in offering Calibre de Cartier Replica, Cartier Ballon bleu replica , cartier tank watches replica for men or women. Our Fake cartier watches and Cartier Jewelry like as Replica cartier love bracelet are sold all over the world and they are popular all seasons for every age. Fake cartier watches have always taken a big part in the international replica cartier market. Fashion fake cartier watches is famous for its unique and attrative style.
[url=http://www.lachicaartnmusic.com/Replica-cartier-tank_c3]Cartier tank replica[/url]
Cartier tank replica

13.- They likewise have jewelry watches, quartz watches and mechanical watches within their lineup. From the decade of 1900 towards the date the corporation has never compromised the quality and contains the reputation of his dignity because the forerunner in the field of production and marketing of watches. Whether it can be your office colleague or your boss a pen because of this brand is going to be ideal. An antique will probably be smooth towards the feel, and still have no jaggy edges that catch on your own hands and clothing. Saskia creates some unusual rings with sculptures to them, that might very well be her trademark creations.
replica hair sale

14.- If you feel that they can not control the type of very bright gold or silver, it's also possible to choose some darker colors, for example purple, blue, etc. Almost 1 / 2 of all people are allergic to certain metals within earrings. Cartier4us has long been famous for most things with all the Cartier jewelry designers being prominent among them. Either that or never obtain a piece until it may be checked by an expert. Cartier watches began in 1847 when Louis-Francois Cartier took ownership of his master.
replica Delices de Cartier

15.- They swell accomplish themselves arresting by abutting barter shows area you'll be able to account from big discounts that they action during this time. A simple tremendous dress, the avant-garde day compatible a large amount of women wear, al of a sudden looks unique. 9 grams of gold and covered with 1023 yellow diamonds and 1060 circular-cut diamonds respectively. And now Cartier has become one while using highest brands awareness and also the longest historical standing. Therefore, the bracket means more, such as the promise and responsibility for one another, besides love.
Fake Cartier Love Bracelets

« Previous | 1 - 5 | 6 - 10 | 11 - 15 | 16 - 20 | 21 - 25 | 26 - 30 | 31 - 35 | 36 - 40 | 41 - 45 | 46 - 50 | Next »

Add your Comments



Escribe el código de la imagen superior:

:

TECNORAMA es simplemente una página personal. No sirve ni de promoción del autor ni cosas por el estilo.
Todos los códigos, textos y tutoriales son de libre uso mientras se mencione al autor (no es mucho pedir)
Este sitio es compatible con IE6/NS6/Mozilla1.0
Para contactar, puedes enviarme un e-mail a tecnorama@hotmail.com