Quick question. Not seeing that anyone has answered this in other forum posts.
Is there a way for me to have limits on the size limit for uploaded images?
And can the system resize them for us when an image is uploaded?
Quick question. Not seeing that anyone has answered this in other forum posts. Is there a way for me to have limits on the size limit for uploaded images? And can the system resize them for us when an image is uploaded?
|
Are you looking for Pixel limits? (ex: limit 1500x1500) or Disk-Size limits? (ex: limit 2MB) |
by default dolphin relies on the max_upload file size setting on php ini Quick question. Not seeing that anyone has answered this in other forum posts. Is there a way for me to have limits on the size limit for uploaded images? And can the system resize them for us when an image is uploaded?
if you hack the different areas where photo upload is allowed, there is no resizer option available, and you would have to add a note on top of the upload button to notify your users of a file size limit.
i know many have this problem because of the digital age, and high resolution images from digital cameras are bigger than the side of a house, and folks take no regard in resizing their images, thus you end up with an image 3200px x 2650px or something off the hook. When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
There is a mod out there that removes the original image. All the other 'thumbs' are reduced automatically. You can also set your max upload size in your php config file on your root server or in your php.ini file. There's no serious 'hacking' required to achieve the desired result. http://towtalk.net ... Hosted by Zarconia.net! |
There is a mod out there that removes the original image. All the other 'thumbs' are reduced automatically. You can also set your max upload size in your php config file on your root server or in your php.ini file. There's no serious 'hacking' required to achieve the desired result. @sky, yes, you can set the max_upload size, however, that affects all uploads, and not just photo uploads. so yes, you do have to hack the files. if you are looking for the global approach which is what dolphin is structured at now, then you simply set the parameter on the ini or htaccess on max_upload, but if you limit an image to 2mb, which is a large high res image, you have limited audio and video to the same 2mb.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Yes, but if you disable keeping the original file, it makes no difference how big an image is uploaded as it's tossed at the end of the process anyway. I set mine to 500 megs and to date, with over 600 members and many thousands of images, i haven't had a single one that has been 'too big' Storage is cheap and making a terabyte or more available for photo storage really isn't a big deal anymore anyway. In my opinion, Telling someone the image size is limited to 2 megs will only make them go somewhere else to upload their 5 meg photo and you end up losing the member. In other words, why mess with something that's not broke? http://towtalk.net ... Hosted by Zarconia.net! |
In other words, why mess with something that's not broke? because he asked to limit the size of the image, that is why you would mess with something that is not broke, preference. and if somebody tried to load an image that is 5MB they are an idiot, and they belong on some other site. IMHO. When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Really? You actually want to call people that want to load high resolution images into a website, possibly for download by someone else to modify or work with an idiot? Limiting the size of your image uploads is foolish now. Most cameras do at least 12 megapixels today in many different formats including raw. They may not want to compress them and loose image information in the transfer process. If the site does not support large images, it's the sites job to compress them for display and toss the original. Making the user go find a site to do that for themselves in those cases just means they are going to go find another site to do that for themselves and stay there. ! http://towtalk.net ... Hosted by Zarconia.net! |
yeah, thats what i said, if a person is uploading an IMAGE that is 5MB, that is an idiot. thats my belief, if you want to allow such behavior, thats your perogative, and preference. you are only dealing with a handful of images in the greater scheme of things, when i reference this, i am talking about 10's of thousands of images, last time i moved a site where it was a problem there were 32000 images.
what i am saying is that a person who has a camera that creates image sizes by default that are not even applicable to the web, should have some knowledge on how to manage their images. just because they have the capability to create print quality images with a camera, does not indicate that those images are web ready. and you mention resize, and lossless issues, you will get that with gd or iconv either one. they are not designed for those types of graphics. but oh well, good luck in your ventures. Really? You actually want to call people that want to load high resolution images into a website, possibly for download by someone else to modify or work with an idiot? Limiting the size of your image uploads is foolish now. Most cameras do at least 12 megapixels today in many different formats including raw. They may not want to compress them and loose image information in the transfer process. If the site does not support large images, it's the sites job to compress them for display and toss the original. Making the user go find a site to do that for themselves in those cases just means they are going to go find another site to do that for themselves and stay there. !
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
I bought a software program back in the 90's that allowed people to create their own websites (like a geocities). But within 2 months, my bandwidth bill was $800 and I had made maybe $5 on affiliate marketing. So I had to shut the whole thing down. I have a classified ad script that automatically shrinks images down to a set limit during the upload to my site. I would think this would be easy on a program so robust at dolphin. I don't really want people uploading 5mb images to my site when 250kb will work just fine. Plus 5mb X 10 photos per gallery can stack up quick. Any thoughts on the best way to limit file size uploads and what file to put the verbiage to warn members to reduce? |
All images uploaded to your Dolphin script are reduced as a matter of course. Dolphin also saves a copy of the original file. Just mod your site to delete the original and you will have achieved your goal. http://towtalk.net ... Hosted by Zarconia.net! |