Uploading multiple pictures in Zip Uploading multiple pictures in Zip
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Uploading multiple pictures in Zip

Started by Tarique Sani, October 13, 2003, 09:04:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tarique Sani

Uploading multiple pictres in a Zip file - How do you foks think this should work

Or is this a crappy idea?
SANIsoft PHP applications for E Biz

Joachim Müller

afaik this has been done as a mod (on the old board) - or maybe I'm confusing things with the mod that allowed you to download pics as zip...
For those who are short on bandwidth it'd surely be a nice add-on.

GauGau

Tarique Sani

AFAIR The mod in the download section allows you to download pictures as a zip file

I want more input like - should there are a comments file in the zip which can add comments etc
SANIsoft PHP applications for E Biz

moorey

Perhaps this?: When you "add" or "upload" zipped pictures - the server unzips the file and shows the files the same as the "batch add pictures" listing. If there are folders in the zip files, it should be treated like adding a folder with folders during batch adding.

I'm not too sure about that being space-saving though - doesn't unzipping require free temp space? The zip probably should be deleted after unzipping then.

Joachim Müller

...and you can hardly compress jpegs at all, as they're already compressed, so putting them into a zip won't save much space.
Of course the zip should be deleted after successfull unpacking.

GauGau

P.S. I'd prefer an "upload multiple pics at once" interface to a zip upload feature anytime -has been requested often on the old board, see http://www.vddh.com/projects/w-nailer/uploadpics.php?did=test (login as "Guest/Guest")

Tarique Sani

Quote from: "gaugau"P.S. I'd prefer an "upload multiple pics at once" interface to a zip upload feature anytime -has been requested often on the old board, see http://www.vddh.com/projects/w-nailer/uploadpics.php?did=test (login as "Guest/Guest")
404 :(
SANIsoft PHP applications for E Biz

Rodinou

I'd rather the Zip Solution ...

The coder who has done it on my site Fantasya.net has realized a big thing :
1. you have only ONE form (you choose between a pic or a zip file)
2. Pics dezipped, thumbnails created on the fly
3. possibility to change title

When all is done, added in the data base

Do you want Screenshot ?

Tarique Sani

Well I ran some tests zipping up jpg images with 85 optimization and the size reduction is not worth the trouble....

Multiple uploads from a single form has to be it
SANIsoft PHP applications for E Biz

Joachim Müller

just to give you an idea how this could look like: I just took the html output of the wnailer demo and put it here (it won't actually upload anything).

GauGau

Tarique Sani

Quote from: "gaugau"just to give you an idea how this could look like: I just took the html output of the wnailer demo and put it here (it won't actually upload anything)

If someone can make that JS work in Mozilla as well as IE - I will program the PHP easily...

Any JavaScript - dhtml wiz out there?
SANIsoft PHP applications for E Biz

tym

Just because zip does not provide any space saving for images (a sensible zip program will put them in uncompressed) it does provide a convenient interface for supplying multiple images which is not achievable using a web interface (multiple file upload fields are unwieldy).

Tim

jasendorf

Quote from: "tarique"Well I ran some tests zipping up jpg images with 85 optimization and the size reduction is not worth the trouble....

Multiple uploads from a single form has to be it

I don't know.  You must admit, finding and uploading say 50 photos with 50 individual upload file is a pain for the user.  But, then again, with uploading via zip we're going to have a mess of a time with quotas.
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

Rodinou

Jasendorf, no problem with quota : it is possible via php to "calculate" the space of a zip.

If zip > quota, no upload.

Furthermore, it is evident upload pic per pic (even if in the end, 1 sent form is used) = become crazy ! :) :) :)

I like very much the layout of the zip page.

Tarique, what do you want in javascript/dhtml ?

Tarique Sani

Quote from: "Rodinou"Tarique, what do you want in javascript/dhtml ?
The example page supplied works only in IE - it should work atleast in IE + Mozilla
SANIsoft PHP applications for E Biz

Rodinou

Don't understand this page doesn't work with Mozilla

in upload.js we have



function getObj(name){
        if (document.getElementById) {
                this.obj = document.getElementById(name)
                this.style = document.getElementById(name).style
        }
        else if (document.all) {
                this.obj = document.all[name]
                this.style = document.all[name].style
        }
        else if (document.layers) {
                this.obj = document.layers[name]
                this.style = document.layers[name]
        }
//var y = new getObj('" + photo + "')
}



This proves it's optimized for GetElementById, so ... IE 5.x and ... Mozilla !

majestyk

An upload facitlity for zip's, tarballs etc. would be great. In my case, I have pictures in a directory which I want to feed in a new album. Instead of adding picture for picture (normally, there are 30-50 pictures I want to add 'in a row'), it is much more convenient to package them - even if there is no more compression gained.
So the upload facility should be able to accept packages (even if they have 30MB or more, this shouldn't be a problem if you have a good connection), unpack them into an "upload" directory, from where you can "batch-add" them as usual.

This would be very helpful for me, since I normally don't add single pictures, I add single albums ;-)
Thanks,
/majestyk

macke

Couldn't this be done in a fashion similar to what is currently used on pbase for zip uploads?  The zip file is uploaded, files extracted, thumbnails generated and you get the pic management page where you can title/move the pics.

--max

rsorensen

Just my two cents worth -  Before i found Coppermine, I tried Gallery http://gallery.menalto.com/ which is also on sourceforge and running on PHP. It does this with the zip files. Its pretty cool. Just zip up 20-30 images, upload the zip, and Voila!

tuxhedoh

Back in the days that zing was a photo gallery, and snapfish does this currently, they had an option to download an extra component, that gave you drag and drop capability.  You'd navigate to the webpage that had an area to drop the pictures on.... once you dropped the pictures it would give you a confirmation page that it had all the files, and then upload them.

I personally would think this would be better than uploading via zip....but haven't been able to figure out how it worked.

Oasis

so..... is anyone doing anything about this one...
I'd hate to see this thread dissappear....

I think the W-Nailer thing is great,
And the pbase way is good too.
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org