Better image size option

When I am setting the image size, I have the option of setting the size of "width", "height", "longest side", "shortest side".

I think it would be better to instead just have the options of "max height" and "max width", where you have to set at least one of them.

This covers the options that are there now, but additionally gives the possibility to set an area that the image has to fit within. Let's say for instance that I want all pics to be 700px wide, which I can easily set using the current system. But sometimes I have really tall pics, and I don't want them to be restricted by the width of 700px, but by a height of say 1000px instead. This is not possible with the current system, as far as I can see.

I would imagine this to be fairly easy to implement as well.

Comments

  • So, then use those functions if that is what you want.
  • acrylian Administrator, Developer
    What sbillard means change your theme to use the maxspace image functions and then use the option values to set them up.
  • Jonas Member
    Ah, okay. Didn't know you had that. I'll look into it.

    If it is dependent on the theme I guess it's not straight-forward to change the default to the maxspace functions. But if it is possible to change it in the core so that even the "old" theme-functions works with the "new" maxspace system I would recommend it for simplicity.

    If I am the only one with the request you don't need to worry about it of course. I'll get by :)
  • acrylian Administrator, Developer
    The problem is actually backward compatibility that we care about. Zenphoto normally did only use one size for the sized images (other than the thumbs). So you would get for those always size x size image on the image pages. Most standard themes do not need a widht x heights maxspace functionality.

    If a theme needs it can easily be setup, you just have to replace a few functions. You alsp can even override all options for layout reasons if you don't want users to "destroy" anything..;-). Generally the true flexibility of Zenphoto lies in theming actually.
Sign In or Register to comment.