Preventing scaled image.

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
ploceus
Forum Newbie
Posts: 1
Joined: Fri Apr 04, 2008 5:18 pm

Preventing scaled image.

Post by ploceus »

I'm having trouble with GD graphics. How do I prevent the browser from toggling between original size and a scaled image size? In other words, a small magnifying glass (with+/-) is shown and user can toggle between image sizes.

I know that this default behavior can be avoided by resizing the browser window. For various reasons, I don't want to do that.

I would like to disable this toggling and show at one fixed image size, regardless of browser window size. How can I do this?

Thanks.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Preventing scaled image.

Post by John Cartwright »

This falls within the domain of the browser and not GD. I'm not sure if there is a standard for such a CSS property..
Post Reply