Welcome, Guest. Please login or register.
Did you miss your activation email?
14 May 2008, 07:21

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: Album auto resize images at upload  (Read 597 times)
0 Members and 1 Guest are viewing this topic.
anivision
Forum Member
*

Karma: 0
Offline Offline

Posts: 16


« on: 25 Feb 2008, 09:19 »

I would like to add a function to the album image upload so the uploaded picture is resized if it's bigger than a defined width. This should be done on the fly when the picture is uploaded to the server. The original sized picture is not nessecary to save on the server, just the scaled down one.

I've searched here on the forum about this but havn't found an answer to it. The suggestions I found like using the image module or like scale it on the computer before upload it wont work here. The main reason is that the people I make the homepage for has there thumbs in the middle of there hands when it comes to computers, so things must be in a easy way here.

Does anyone has a bright idee of how this could be done?
Logged
anivision
Forum Member
*

Karma: 0
Offline Offline

Posts: 16


« Reply #1 on: 28 Feb 2008, 05:53 »

Noone seems to have a clue here... Undecided
Logged
anivision
Forum Member
*

Karma: 0
Offline Offline

Posts: 16


« Reply #2 on: 02 Mar 2008, 18:39 »

 Huh
Logged
goallblacks
Forum Member
*

Karma: 0
Offline Offline

Posts: 11

Location: Auckland, New Zealand



WWW
« Reply #3 on: 03 Mar 2008, 16:20 »

This functionality is built into the image module. If you have the php skills you could start by making a copy of this module, renaming it and customising it to your needs.
Logged

"It's better to be a lion for a day than a sheep all your life". - unknown.

"Plenty of people miss their share of happiness, not because they never found it, but because they didn't stop to enjoy it."  William Feather (1889-1981, Writer)
cubix
Power Poster
***

Karma: 1
Offline Offline

Posts: 317

Location: New Zealand


WWW
« Reply #4 on: 03 Mar 2008, 17:42 »

I'm facing the same problem with other modules, but rather than end users, its me, being lazy, and not having to resize 100+ pictures.

I see some new svn add/updates recently for the ImageUpload module which looks promising, shouldnt be too hard to take some of the functionality from this module to be used elsewhere, provided you know what your doing Tongue
Logged

</war>
nate22
Forum Member
*

Karma: 0
Offline Offline

Posts: 54


« Reply #5 on: 27 Mar 2008, 13:45 »

I am going to try to solve this problem in the next few weeks. In the book, PHP Solutions, there is sample code explaining how to do it as long as GD is enabled on your server. If I can figure it out, it will be my first contribution.
Logged
calguy1000
Posts that don't follow the rules (don't ask what the rules are, read them) will be ignored, moved or deleted
Dev Team Member
Power Poster
*****

Karma: 141
Offline Offline

Posts: 3471

Location: Calgary, Canada



WWW
« Reply #6 on: 27 Mar 2008, 13:55 »

I'm facing the same problem with other modules, but rather than end users, its me, being lazy, and not having to resize 100+ pictures.
Image Magick and some simple bourne shell scripting, allows you to easily resize a bunch o images.  no problems.  1/2 an hour of scripting, and the script is re-useable.

Damned windows users.

Quote
I see some new svn add/updates recently for the ImageUpload module which looks promising, shouldnt be too hard to take some of the functionality from this module to be used elsewhere, provided you know what your doing Tongue

Sure, this could be coded into the image manager or whatever other modules, but then there are problems with php memory limits, file size limits and other limits on mycheaphost.com etc.  it's better to resize the images before you upload.

Logged

----
CMS Made Simple is Simple - For experienced developers.   You don't need to know php to use CMS but you should have some experience with website design, website development, and supporting dynamic applications in a hosted environment.   The words CSS, XHTML, and permissions should not be new to you.
cubix
Power Poster
***

Karma: 1
Offline Offline

Posts: 317

Location: New Zealand


WWW
« Reply #7 on: 27 Mar 2008, 16:39 »

both valid points calguy.

from my point of view, i try to set up everything for the end user, so they can't screw up too badly. They end up loading images straight from their digital camera at 2mb+. Sure I should be teaching them, but its tedious to teach every client how to resize images etc..

when i find some time, ill have a play round too, see what i can come up with.
Logged

</war>
cb2004
Forum Member
*

Karma: 0
Offline Offline

Posts: 111


« Reply #8 on: 01 Apr 2008, 09:30 »

Auto image resize is a must for me. I have just launched a big site and realise that CMS Made Simple does not have it Sad. Yes I should of known but I resize before I upload. My customers will not expect to have to do this themselves.
Logged
Pages: [1]
Print
Jump to: