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?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Image resizing
-
**unknown user**
- Rank: Expert
- Registered: Mar 16, 2002
- Last visit: Apr 02, 2010
- Posts: 1208
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. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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 -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 69
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? -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
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
- Moderated by:
- Support
