[pmwiki-users] SPAM-LOW: Automatic generation of image height / width?

Stephane Smets velosteph at ferrosteph.net
Mon Jan 5 05:32:06 CST 2009

Hi everybody
I use from years a script in ASP which return the height and width of picture files. You can find here all the information and the code : http://www.4guysfromrolla.com/webtech/050300-1.shtml 
I never try to translate it in PHP, but I think it is not very difficult, so you have there a good idea to use for your project. The only "special" thing to have is the ability to read a file on the webserver disk, so ... It will run on any server, ..

From: Russ <pmwiki at russhosting.com>
Sent: Monday, January 05, 2009 3:47 AM
To: PmWiki Users <pmwiki-users at pmichaud.com>
Subject: SPAM-LOW:  [pmwiki-users] Automatic generation of image height / width? 

I have a project that outputs one particularly large HTML page (250k
+), which is being generated in an average 0.4 seconds but takes 10-12
seconds under moderate server load to display.  To compound the
"download speed" issue, there are dozens of small images (logos) that
must download first before the page renders in the browser.  So, the
visitor ends up staring at a blank screen for quite some time!

I'm dealing with the hosting company to see if they can install an
output compression library to cut that download speed considerably, but
I'm also looking for a way to read and automatically include the width
and height of the logos and other images in the IMG tags, to display
the text of the page to the visitor sooner.

I believe there was a discussion some time ago about automatically
generating the image height/width, and some of the considerations
(availability of image processing libraries, overriding the default
size with wikistyles, etc.) would be resolved by making it a recipe. 
All of the images are either .JPG or .GIF, and are located in the
default /uploads directory.

Original discussion from PmWiki mailing list:
http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/36550/focus=36554PHP function using getimagesize() referenced in the 2006
discussion: http://www.wischik.com/lu/programmer/get-image-size.htmlAnother discussion about capturing image properties in PHP:

Any advice on how to proceed, or if someone is willing to take the
project on, please let me know.  If someone is willing to write a quick
recipe, there would be a small payment available either to the
developer or to the PmWiki project at your discretion.


Russ Jackman


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090105/17223b93/attachment.html 

More information about the pmwiki-users mailing list