Advanced Layer Popup Support Product Page

Dynamic Images - image dimensions

Asked 28 Apr 2007 14:38:30
1
has this question
28 Apr 2007 14:38:30 karl hemmings posted:
I have managed to use this code to open an appropriate dynamic image from a recordset.
/images/<%=(PicsRS.Fields.Item("pic".Value)%>

It works fine <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

However, the images are of different width and height... my question is:
How can I have the layer popup resize according to the image dimensions that are called from the recordset?
My database does not store image dimensions so I cannot call those details from the recordset.

Replies

Replied 04 May 2007 17:39:49
04 May 2007 17:39:49 Georgi Kralev replied:
Hi Karl,

The only solution I can think of is to write server-side code that read the image dimensions and when set them in a similar manner as the image name.

Regards,

Georgi Kralev

----------------------------------
Support - www.DMXzone.com
Replied 05 May 2007 00:34:08
05 May 2007 00:34:08 karl hemmings replied:
That sounds like a great idea.

Could you point me in the right direction or examples of code I might use?
Replied 31 Jan 2008 01:32:06
31 Jan 2008 01:32:06 Mark Scarbrough replied:
Doesn't sound like a great idea to me. The behavior should be able to leave the size "as is" for dynamic photos. I've spent about $300 on 3 different gallery/photo behaviors and each one has limitations with dynamic images that have ended up making them useless for me. My images come from a database and I have different sizes. Why would it be so hard to just show the photo as is without resizing it! I am very frustrated. In the past DMX was the FIRST place I came to, to look for quality behaviors that would solve problems. I know there is some great stuff here, but it looks like you have forgotton about folks that create DYNAMIC sites and now you focus only on sites with existing static images. It looks like I will need to implement something else (from someone else).

Mark
Replied 05 Oct 2010 19:37:48
05 Oct 2010 19:37:48 Jack Wright replied:
Did anyone have a solution to this?
Replied 07 Oct 2010 11:10:13
07 Oct 2010 11:10:13 Miroslav Zografski replied:
Hello,

That is still to be addressed.

Regards,

Reply to this topic