Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

img width height validation

435pJJau251
 
Posts: 44
Joined: 17 Jun 11
Location: China
Trust:

img width height validation

Is there a way to validate pages without 1 image having width height validation? I have a dynamic image which can change in width/height so cannot declare the dimensions in the img tag..
 

  • 0
Site Admin
Cecille L
 
Posts: 2087
Joined: 25 Feb 11
Location: Philippines
Trust:

This is really a question best answered by a programmer or developer. I checked with a member of our technical staff and he said this depends on the type of script that you're using. The following websites might help:

Getting width and height of dynamic image
Dynamic Image Generation

Have a good day!
 

  • 0
Cecille


Download the FREE "How to Find Profitable Niches Report" : http://www.affilorama.com/affiloblueprint/v3


Add us on Google Plus: http://www.affilorama.com/googleplus
 
thel.online.ph
 
Posts: 109
Joined: 13 Sep 11
Location: Philippines
Trust:

I think it could be done if you replace the img tag with a call to a server-side script that will write the img tag, together with the name of the image and its dimensions. The page will be parsed by the server and sent to the validator or to the visitor's browser as plain HTML. You should have a valid page, and the scripted tag should always validate.
 

  • 0