I'll NATURALSIZEFLAG *you*, you lousy HTML

OK, if you’re bringing a picture onto the web page you are designing, you can display it life size or you can resize it by specifying height and width.

<IMG SRC=“Folder/Subfolder/Target.jpg” WIDTH=“377” HEIGHT=“71”> that kind of thing

…but! If you don’t know the original dimensions of the image, you can distort the image onscreen. How do you get an image to resize proportionally, preserving the aspect ratio? I was told to use the NATURALSIZEFLAG, but I don’t seem to have the hang of it.

The HTML in question is being calculated in FileMaker Pro, so the actual image source will be different depending on what record is the active record (i.e., calculation field defined as “…”<IMG SRC="&QMk&“Folder/Subfolder/”&FIELDNAME&".jpg"…", etc), so I don’t know the parameters of the image beforehand. Some will be square, some tall rectangles, some wide rectangles.


Disable Similes in this Post

Only use one specifict command…either height or width, not both…if you just give it one of them, it will re-size proportionalty

Well, that’s convenient! Thanks!


Disable Similes in this Post

Or, if you did need to find out the dimensions of a graphic, right click on the image, then click on “Properties” on the menu that comes up.


Your Official Cat Goddess since 10/20/99.

SD chat:
<Jophiel> Kat’s here! the board must be down!