ZenphotoCMS Forum
resolutions - 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: resolutions (/thread-3842.html)



resolutions - ela002 - 2008-09-29

Hello,

Is it possible when I upload a high resolution image to get smaller resolution sizes too?

Like 1024 x 768, 1280 x 1024 etc.. wihout having to upload a different resolution of the same image?

Thanks




resolutions - sbillard - 2008-09-29

Yes, zenphoto resizes photos to the size needed for display. The standard themes all display a "normal sized" resize of the image based on the options you set. If you want multiple different sizes you would need to customize the theme for that.




resolutions - ela002 - 2008-09-29

Maybe I didn't make myself clear.

Each image has a link "Full Size". What I need is to have a link for 800x600, 1024x768 etc. so it has to resize the image on the fly.




resolutions - sbillard - 2008-09-29

No, you were clear. You can do that if you wish. But it is not done in any of the distributed themes.




resolutions - ela002 - 2008-09-30

Is there any theme even if I have to pay for it that can provide that option?




resolutions - acrylian - 2008-10-01

No, sorry, there is no theme that provides that option. If you know php you can do that yourself, take a look at our functions guide and search for customsizeimage functions.




resolutions - ela002 - 2008-10-01

Thanks I will give it a try I have find how to do it but need to work on it how to crop/resize each image only to lower resolution than the original size.

What I have found till now is this:

`
">

">
`




resolutions - acrylian - 2008-10-01

The code you posted is not readable, you need to put it into backticks.

[i]but need to work on it how to crop/resize each image only to lower resolution than the original size.[/i]
You find all info on how to do that on our functions guide. Of course you will need some php knowledge to get that working.




resolutions - ela002 - 2008-10-01

I have modified my post, is it ok now?




resolutions - acrylian - 2008-10-01

Yep, now ok. You found the correct functions.




resolutions - ela002 - 2008-10-02

``

I found that way to make multiple links for different resolutions. Now what I am trying to find out is how to resize only to smaller resolutions, it would look very bad to resize from 800x600 to 2560x1600.




resolutions - acrylian - 2008-10-02

Please review our functions guide, we have functions for getting the width and height of an image.




resolutions - ela002 - 2008-10-02

How can I avoid cropping? When I use the first variabled getCustomImageURL($size, $width=2560, $height=1600 it crops the image instead of just resizing.

Oh you have answered me on another thread where I asked about $size, I will try to use getCustomSizedImageMaxSpace.

Thanks a lot