Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2012, 09:55:17 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155094 Posts in 21661 Topics by 7721 Members
Latest Member: arrow345
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: optional image resizing to the media area on upload  (Read 6231 times)
Olli

Offline Offline

Posts: 290


« on: January 26, 2006, 10:31:28 AM »

hello,

i just thought it would be damn nice to have automated image resize and/or size reduction with image magick or similiar to the media-area.

for those of you who are not familiar with image-magick and thelike: the programs are linux-libraries for automated image processing after e.g. uploading a picture.
the way it works could be like this:

- you choose to add another picture to the media area of your website
- the picture you choose comes directy from your digital camera and is huge in size
- after finishing uploading image-magick resizes the picture to your presets and the desired file-size

this saves a lot of time and is soooo user-friendly Wink

what do you think?
« Last Edit: February 08, 2006, 01:11:04 AM by Olli » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7970



WWW
« Reply #1 on: January 26, 2006, 10:47:52 AM »

As image magic is not installed on all webservers this makes no sense, because a lot of users couldn't use this feature.

Matthias
Logged
Olli

Offline Offline

Posts: 290


« Reply #2 on: January 26, 2006, 11:15:59 AM »

hello matthias,
that's why i wrote 'optional'... Wink

but you're right: this is not valueable to all.

i'm not sure if there is a way to autodetect stuff like image-magick...let's see.
just thought about the people that are not familiar with image preparation for the web...

you have easy text editing on the one hand, but images still need some preparation by the client.

maybe gd/gd2 (which comes with php) is enough for this, but i'm not sure about it's capabilites yet.
« Last Edit: January 26, 2006, 02:21:00 PM by Olli » Logged
Olli

Offline Offline

Posts: 290


« Reply #3 on: February 07, 2006, 11:13:41 PM »

hello everyone,

this evening i tried to include some basic image resize features of the GD libraray to the media area.
so no extensions or configuarations to PHP are needed on this...

basic resizing is working now (more or less to be honest Wink)

if you might want to try a look copy the attached files into WB_DIR/admin/media
and replace 'template.html' and 'upload.php'.
these files are from wb 2.6.2..

there are still some GD issues messing up the colors which i don't get at the moment.
it's bedtime now - will look at it tomorrow...

bye
« Last Edit: February 08, 2006, 11:35:40 AM by Olli » Logged
Olli

Offline Offline

Posts: 290


« Reply #4 on: February 08, 2006, 11:38:09 AM »

ok, now resizing works in good colors.

make sure you have at least GD >=2.0 installed. otherwise it'll look crappy...
GD comes with PHP in most cases and should be available on default.

hope you like this. it's no big deal, but i try to give sth. back to this great community Smiley

bye
« Last Edit: February 08, 2006, 11:40:08 AM by Olli » Logged
wwwMARKLEYcouk

Offline Offline

Posts: 288


WWW
« Reply #5 on: February 27, 2006, 11:31:52 AM »

cant believe i missed this Cheesy

excellent work, just what i was looknig for, thanks a lot Smiley
Logged

Olli

Offline Offline

Posts: 290


« Reply #6 on: February 27, 2006, 01:29:05 PM »

thanks dude Smiley
Logged
Stu-Art

Offline Offline

Posts: 57


« Reply #7 on: March 01, 2006, 04:44:48 PM »

This works really well.  Can you also add an option to upload Zip file and extract them to the selected media directory, also applying the same resizing options?

Stu...
Logged
Olli

Offline Offline

Posts: 290


« Reply #8 on: March 01, 2006, 05:06:23 PM »

hello stu-art,
you're thinking about gallery preparation in some way,right? Smiley
yeah why not...
unfortunately i'm quite busy at the moment so it might take some time...
bye
Logged
tomhouy

Offline Offline

Posts: 17


« Reply #9 on: April 26, 2006, 08:59:17 PM »

wouldn't you still have to upload the file full size though, before image magic can do anything? In other words, if you have 50 pictures, and they're all about 2-3mb each, it would still take a while for them to all upload before they can be shrunk down to a smaller file size.
Logged
pcwacht
Guest
« Reply #10 on: April 26, 2006, 09:04:53 PM »

True

ImageMagick (and GD btw) are on the server. So if they want to do something on the pictures the pictures needs to be on the server.

John
Logged
mysticcowboy

Offline Offline

Posts: 200



WWW
« Reply #11 on: May 06, 2006, 11:17:02 PM »

It seems like trying to do batch resizing on the server has some problems. Besides the extra bandwidth and storage for larger pictures, theres the slower speed on server side execution compared to doing the resizing locally. GD and ImageMagick are not speedy.

There are so many photo gallery programs that work on the desktop, that's not counting the gallery functions in editors like Photoshop that you'd be better off doing this at home.

And if you're adding this feature for others, it's much better to not give anybody the ability to upload multiple large photos at once. Too, too many times I've seen people try to upload directly from their camera.

The other option is to use the Flickr module. You can batch upload to Flickr and mash the photos into WB.
Logged

michael mckee

www.mactheweb.com
Mac and Web Design, the perfect marriage
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!