![]() |
|
how to get image-size at 100% - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: how to get image-size at 100% (/thread-5820.html) |
how to get image-size at 100% - Herr - 2009-09-09 Hi all, I made this code to scale images to fit the screensize of the browser, it works perfect for me, and i would like to integrate in the image.php file of my modificated Zenpage-default theme. Since i have no knowledge of php, does anyone has an suggestion how to do that? Till now i managed to restyle the theme the way i like it, almost ready, but i'm stuck here. Thanks a lot in advance! ' image {
} all {
} ' how to get image-size at 100% - acrylian - 2009-09-10 Well, you will have to do some work. If you don't want images to be upscaled by that css you need to render image in the real size via our custom image functions (see the documentation) to fit the acutal browser window. To find out the browser window (viewport) size you need to use JavaScript to get that info. how to get image-size at 100% - Herr - 2009-09-10 i WANT them to be upscaled by that css, but i dont know where to put those Div's on the image.php page without messing up the php code. I think its simple to do for you guys, corect me if i'm wrong So, here somewhere in this code it has to happen. There is this 500,500 thing, i dont know how to remove. Sorry for asking questions in this simple way, i really dont know a thing about php. :-S `
` how to get image-size at 100% - acrylian - 2009-09-10 That is pure CSS then. Yyou probably have to address the img tag within the ` how to get image-size at 100% - Herr - 2009-09-10 i tried, but there is still that 500,500) thing that sizes my image to 500px... how to get image-size at 100% - micheall - 2009-09-10 have you tried leaving those blank? i.e. printCustomSizedImageMaxSpace(getBareImageTitle(),,) how to get image-size at 100% - acrylian - 2009-09-10 That is why you need to process the images in the size you want. Following the standard our standard functions attach the widht/height to the img tag. You need to built your own using the how to get image-size at 100% - acrylian - 2009-09-10 @mciheall: that is pretty useless as the function needs that values to do something. I already told what he has to do, but of coruse without any php knowledge that will be not that easy... how to get image-size at 100% - micheall - 2009-09-10 gotcha, I hadn't tried it, thought it might give the image at natural HxW, but make sense |