Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:

Password:

Remember me

Image uploader / optimizer
Welcome, Guest. Please login or register.
November 20, 2008, 09:04:37 AM
11306 Posts in 1249 Topics by 501 Members
Latest Member: rosaline
Experts Round Table Network  |  Community Affairs  |  Soapbox  |  Image uploader / optimizer « previous next »
Pages: [1]
Author Topic: Image uploader / optimizer  (Read 548 times)
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« on: April 10, 2006, 08:02:00 AM »

The image optimizer I've been working on is now available via the "Upload Image" link at the top right of the textarea you type in when you post comments. You can use this tool to upload images to ERT so you can post them in the forum. It will also let you optimize, rotate, and scale your image, as well as converting to grayscale. You can upload jpeg, gif, png, and bmp. After uploading and optimizing, you'll be given the full BBCode to post your image in the forum.  

You must be a registered member, and currently logged-in to use the image uploader/optimizer. You also need to have javascript enabled. You can get the full details here: http://www.expertsrt.com/bbimages/

I dont have a tremendous amount of time for further development, but I welcome any comments or suggestions, which you can post here. If you'd like to test it out, feel free to post any (appropriate! :glasses7:) images in this thread, but please remember to follow the guidelines about not posting unecessary images in the tech threads.

Thanks,
Matt

 :^)
Logged
COBOLdinosaur
ERT.com Admin

Offline Offline

Posts: 481



WWW
« Reply #1 on: April 10, 2006, 10:50:49 AM »

Great Job Matt.  Did you get your taxes finished?

This is how dinosaurs deal with taxes:

Logged
rdivilbiss
Governing Council Member
*
Offline Offline

Posts: 414



WWW
« Reply #2 on: April 10, 2006, 11:40:59 AM »



Seems to preserve custom GIF formats correctly.

Thanks for the nice tool.
Logged

Rod
VGR
Mentor

Offline Offline

Posts: 682



WWW
« Reply #3 on: April 10, 2006, 11:50:46 AM »

impressive php script

nice work

this is the pNG file I rotated+grayscale+change in quality



just a side question : why didn't you convert to PNG in stead of JPeG ?
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
Esopo
Governing Council Member
*
Offline Offline

Posts: 74


WWW
« Reply #4 on: April 10, 2006, 04:12:48 PM »

Quote from: "VGR"

just a side question : why didn't you convert to PNG in stead of JPeG ?


Although I'm not familiar with Matt's choices, I can say that PNG doesn't support lossy compression hence not allowing for the change in quality that the script offers.

I suppose that, in an attempt to respect the transparency and other valuables in the PNG, the script could evaluate whether it is worth it to keep the PNG format by saving the file as both (PNG and compressed JPG) and analizing the filesize difference, but as it stands IMO saving as JPG by default is a reasonable approach.

BTW, cool script Matt!
Logged
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #5 on: April 10, 2006, 06:04:54 PM »

LOL Roy ;-)

Quote from: "Esopo"
Although I'm not familiar with Matt's choices, I can say that PNG doesn't support lossy compression hence not allowing for the change in quality that the script offers.

I suppose that, in an attempt to respect the transparency and other valuables in the PNG, the script could evaluate whether it is worth it to keep the PNG format by saving the file as both (PNG and compressed JPG) and analizing the filesize difference, but as it stands IMO saving as JPG by default is a reasonable approach.

Yeah that's the reason -- there's no "quality" setting for PNG, and for many applications, it would actually increase the file size. At present, I figure that if someone is savvy enough to need their PNG preserved and optimized, they'll probably know how to do it on their local computer.  At some point when I have more time (and feel like working on this some more :wink:), I'm planning on adding the ability to choose between PNG and JPG as you describe, and maybe adding a cropping function as well.

Thanks to everyone for the kind comments  :^)
Logged
COBOLdinosaur
ERT.com Admin

Offline Offline

Posts: 481



WWW
« Reply #6 on: April 10, 2006, 07:51:55 PM »

The significants of this script is not just that it is a first rate piece of work; a really sweet script.  The script was built in resposne to need and requests from membrs for the functionality.  

It exist and enhances the ERT experience because a Mentor on the site seeing the need, and having the skills; created it.  Not for pay; not for points; and not to gain some additional rating.   In the circumstances, a quick cut and past script from the internet would be the response in a lot of communities.  A fast cobbled job with security issues and reliability problems would be the norm i respnses to such a request at a lot of places on the net.  BUT...  this is ERT and Matt and other mentors are setting the bar very hign for any site that want to call it self a professional resource.

Matt gets  :notworthy:  for excellant work.

He gets  =D> for  the professional quality

From an old dinosaur he gets Thank you for being a member of the community, and activly helping to make it better.
 :^)
Logged
VGR
Mentor

Offline Offline

Posts: 682



WWW
« Reply #7 on: April 11, 2006, 01:15:25 AM »

well, it's easy for you to say :notworthy:... you saw the source code ;-)

if ever you're interested in some code more, I did some time ago a thumbnails generator/resizing function for all image formats in input, including transparency & palette stuff when applicable. If I added a FORM as interface, and rotating/greyscale stuff, it would be the same :D

A side note : I tried - of course ;-) - to set the ration to 200:100 althought it was said to be limited to 150:100 ; the script didn't take it into account at all (thus staying at 1:1). I would have expected the script to take the allowed maximum (1,5:1) in stead. It's not mandatory, but more logical to me.
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
Huntress
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #8 on: April 11, 2006, 01:16:18 AM »

w00t!  Most excellent dude!   :notworthy:
Logged
nicholassolutions
Administrator
*
Offline Offline

Posts: 133



WWW
« Reply #9 on: April 11, 2006, 01:26:01 AM »

Quote from: "VGR"
A side note : I tried - of course ;-) - to set the ration to 200:100 althought it was said to be limited to 150:100 ; the script didn't take it into account at all (thus staying at 1:1). I would have expected the script to take the allowed maximum (1,5:1) in stead. It's not mandatory, but more logical to me.

Of course you did  :D  Thanks for pointing that out -- I'll add it to my list of things to do. As for the source code for transparency and palletes, I very well may take you up on the offer sometime soon ;-)

Thanks again for the kind words everyone  :oops:  :wink:
Logged
Pages: [1]
« previous next »
    Jump to: