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.
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