Fork me on GitHub

Image resizing  Bottom

  • I'm not sure if this would be appropriate for this section or if it would be better off as a general module.

    Basically what I'm looking for is a module or Xanthia plugin that would automatically resize images on my PN site if the exceed a certain size. I deally is would override any other script handling the images, and at heart would clean up images posted by users that break my site layout.

    What do you all think?
  • I'm no expert in this regard, but I would venture to guess that you could utilize the GD Image Library functions, which are often "standard equipment" with many web hosts. I believe GD is what Photoshare uses.
  • Or ImageMagik, or one of the others - there are quite a few out there. If I were you I'd check out the code in photoshare or another gallery and see how they utilise the libraries to create thumbnails etc.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Man, I must have been drunk when I wrote that post... my typing is horrible.

    I use both GD and ImageMagick on my site, and I've seen a few code samples about using it to resize images on sites and such... I just thought it would be a nice plugin for Xanthia...

    Can someone point me in the direction of some docs on creating Xanthia plugins?
  • There arent really docs - you are just creating a PHP function which can be called in a template, that's all.

    Take a look at some of the existing plugins, they should be relatively simple examples

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide

This list is based on users active over the last 60 minutes.