Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
Add width and height tags to your in-line images. (navigation images, and icons)

This will make all of the text on your pages immediately available to users.

-santanablank-

Anonymous
Unregistered
Anonymous
Unregistered
Na....
The thing is that those of us who modify the images would be in real trouble. And some of us NEED to modify them, for example, for other languages. So that wouldnt be really welcome. Besides, it´s funny when you see a huge smile suddently go small and to its right size, look at it that way... <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Mateo Byler
<A HREF="http://crucedecaminos.com" target="_new">CruceDeCaminos.com</A>

Anonymous
Unregistered
Anonymous
Unregistered
The thing is that those of us who modify the images would be in real trouble

If it was done there would need to be a script that modified the tags to match. It unfortunately would mean alot of diffs though.

Lee

Anonymous
Unregistered
Anonymous
Unregistered
It looks as though there is no global way to do it. I hardcode mine in manually.

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

Anonymous
Unregistered
Anonymous
Unregistered
One of the excellent things about a PHP version is its ability to determine sizes of images with its built in image functions. I expect to see variables to hold the image sizes in the port, no worries for hard coding.

---------
Shalazar
<A HREF="http://www.charisma-carpenter.com" target="_new">http://www.charisma-carpenter.com</A>

Anonymous
Unregistered
Anonymous
Unregistered
There's a perl module as well (Image::Size?) that does the same task. Aim it at an image and get back the height/width.

Have a script which can generate some h/w vars in their own .pm, and any time you change the images, run the script to repopulate the h/w values. Shouldn't be that hard at all. (Rather than having every web fetch generate two filesystem requests to each image, one for determining the size, and teh other for the browser request)

D

Anonymous
Unregistered
Anonymous
Unregistered
I remember you mentioning that before but it'll be nice not to have to bother with all that.

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

Anonymous
Unregistered
Anonymous
Unregistered
Well, there's not a lot of options for Perl versions. You either:

(A) hard-code image sizes in, forcing people to go manually fix them
(B) Variabilize the heights and widths, causing them to need to be manually set in w3tvars.pm or such.
(C) Variabilize the heights and widths, but have them in their own .pm, which could be autogen'd by some script
(D) use Image::Size throughout the scripts causing double file-accesses per page,
(E) suffer through the known issues with missing height/width tags.

Of those, (A) sucks, (E) sucks, (D) will cause undue load on heavily accessed systems, and (B) and (C) are functionally equivalent with the exception that one is significantly easier for the owner to maintain.

... or am I missing something? <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Anonymous
Unregistered
Anonymous
Unregistered
Yeah, option c is definitely the best but if php makes it unneccessary that'll be even better.

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

Anonymous
Unregistered
Anonymous
Unregistered
... ifyou have PHP, or if your web provider offers PHP.

Myself, I don't have PHP installed in my web server (and don't have any immediate plans to install it...) which means that a perl based solution is still needed. Just because a problem vanishes when using PHP doesn't mean we should ignore the large perl installed-base.

D

Anonymous
Unregistered
Anonymous
Unregistered
Exactly. Are you going to post a hack?

<img src="http://www.amdragon.com/images/eileensig.gif" alt=" - " />

Anonymous
Unregistered
Anonymous
Unregistered
Actually, I have an argument against this and I have looked at adding image size tags but decided not to. When I'm at home and not on my cable modem connection, I turn images off. One of my biggest problems with other sites is their lack of alt tags in images which makes it impossible for me to navigate without images. With images off, no sizes and the appropriate alt tags, I love the site.. Try it sometime... dump your cache and go through the site with no images. See how easy it is to navigate. If you put the sizes in you will lose all this navigation.

Anonymous
Unregistered
Anonymous
Unregistered
Again I must speak for PHP here. PHP is very easy to add into virtually any web server and I find it a must now days on every web server I admin or own. Realistically none of those 5 options are as good as the PHP solution. And even if your web host doesn't provide PHP, you can install it as a CGI (which is how your Perl boards run) and even then I think it's faster then Perl. But then again I am a big Zend & PHP fan and I don't think I have a site that doesn't contain at least a bit PHP.

Anonymous
Unregistered
Anonymous
Unregistered
Jerry, without defining height and width, elements of your page leap about on loading (IE5). I say if you know what the height and width is, define it. Otherwise you're about to click on something and suddenly it's 5cm away. And let's be realistic, what proportion of your users don't have images turned on? The same goes for alt tags which you correctly state should be there (if not for vision impaired access).
If I were you I would paste the 11x10 post icons into a 12x10 size like the others and set this in the code. Then your page loads sensibly.

Just a friendly suggestion.


Darren.
<A HREF="http://www.bullpen.com.au" target="_new">http://www.bullpen.com.au</A>


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Nightcrawler), 963 guests, and 210 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)