PDA

View Full Version : Image sizes = 0 on some and OK on others


tomtomt
12-10-2002, 10:28 PM
When I'm building a page some of my images are sized correctly. On other images the size is 0 for height and width. This has happened to me before with a earlier version of 1st Page 2k. I can't remember how I fixed it. Anybody have any ideas?

Zero Angel
12-10-2002, 10:40 PM
I think the height and width values are inserted as placeholders. Its generally a good idea to fill them in rather then leave them blank, especially when the pages structure depends on the space they take up.

For example, a banner that doesnt have a specified size will not have the correct size until its loaded, then it pushes down all of the content, this is bad because the user has to wait for the graphics to load before the page stops moving around.

dreuby
12-11-2002, 03:33 AM
I've found that FP does sometimes insert 0 instead of the correct size, but I haven't found out why or when. I usually just edit the line manually with the correct sizes.

tomtomt
12-11-2002, 06:16 AM
I do want to have the correct height and width specified in my image tag. And I don't want to have to do it manually. I have 43 pictures to put on 43 different pages. The navagation arrows (gif files) and the thumbnails (jpg files) work great. The main picture on the page comes up with a 0 height and width which means nobody can see a picture. I'm wondering where I can format my preferences in 1st Page 2k to make it insert the correct dimension values for the picture. The pictures are not that big, 500-600 pixels high and 800-1024 pixels wide.

MikeParent
12-11-2002, 07:00 AM
You could do your page in PHP and use the getimagesize fn:

http://www.php.net/manual/en/function.getimagesize.php

tomtomt
12-13-2002, 06:18 AM
I have found a way to get my image sizes place automaticly in 1st Page 2K. After I use Photoshop to put captions on the pictures I run them through IrfanView (http://www.irfanview.com/). I'm not sure what irfanview does but the width and height are correct in the html and not a zero dimension. First I thought it was the file size but after experimenting with all of the sizes Photoshop would let me save the picture with I still couldn't get the dimensions to be anything other than zero.

ByteWizard
12-13-2002, 06:37 AM
I have never had the image toolin 1stPage give me zero sizes but I have had it insert outrageously large sizes. Some quirk in the way the software is reading the image header...

Kevinnaia
12-13-2002, 12:42 PM
Originally posted by ByteWizard
I have never had the image toolin 1stPage give me zero sizes!!!

dreuby
12-14-2002, 01:18 PM
That's weird - it often happens to me! I may have posted in the bugs/wish list forum, but I'm not certain. I've often thought "I wish it didn't do that" (or words to that effect!). I'm running Win98SE, and have an old graphics card, so it may be something on my system.

I'll try opening in Irfan next time it happens, and re-saving, to see if that makes a difference. Now I know it'll NEVER happen again. :D