Display Rectangular Thumbnails for Albums & Images

I want to change my thumbnails from Square to rectangular (i.e. say from 100px x 100px to 300px x 188px) Is this done via the PHP, a plugin or CSS? I have reviewed some forums topics (that are almost 10 years old), once given a correct direction (starting point) to start would be wonderful. I would think that something may have changed since the older postings - some of which have dead links to examples. Any help would be appreciated.

The more I learn, the more I appropriate ZP, it just takes a little more time & effort as the web is not saturated like WP questions & posts.

Thank You

Comments

  • acrylian Administrator, Developer
    Yep, we are a lot smaller than WP but who is not ;-) But you will probably find some things being different but not that different possibly.

    Images are cropped/resized via PHp and stored in the cache folder. Info on caching here:
    http://www.zenphoto.org/news/caching/

    How you can change your thumbs depends on the theme used. For some standard themes like basic you can just change the sizes on the backend Options > Theme.
    On others like the Zenpage theme you need to modify the theme itself as they use fixed sizes for layout reasons (and yes we know that most themes are quite not up to date acutally - all in the works but takes some time being smaller).

    Zenphoto has various image functions and most always a get (only the url) and a print (prints the acutal image) pair of functions for each. We have `defaultimage/thumb functions which means these take the values from the options and`customsize` functions.

    You find these here among others (use the browser page search):
    http://www.zenphoto.org/documentation/functions/_template-functions.php.html

    If you haven't already you should start with the theming tutorial first:
    http://www.zenphoto.org/news/theming-tutorial/

    Hope that helps for a start.
  • Figured it out - took a little time to learn the template functions, but worth it.

    One very helpful idea - was review an existing theme that has a feature (template function) you want & review the code and learn from it. In my case it helped with the code placement & syntax (being new to PHP).

    Addendum: previous post 'appropriate' should be 'appreciate'
  • acrylian Administrator, Developer
    Good you figured it out! Looking at existing themes is indeed a good way to get familiar with it.
Sign In or Register to comment.