forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: gromeck on October 20, 2003, 03:02:28 pm

Title: Delete pictures anyway
Post by: gromeck on October 20, 2003, 03:02:28 pm
Hi *.

I would like to request the feature of deleting pictures from an album even when the directory is not writable.

Images can be added without write access to the directory, so deleting the image from the DB should also be ok.

I did already the modifications on CPG1.2RC2. Where can I dump the patch?

gromeck
Title: Delete pictures anyway
Post by: Joachim Müller on October 20, 2003, 11:35:34 pm
they can't be added to a non-writable dir afaik.

GauGau
Title: Delete pictures anyway
Post by: gromeck on October 21, 2003, 12:25:20 am
Sure, they can -- if the thumbnail and the normal resolution files exists!

My userpics is linked into the web servers document tree and is read-only for wwwrun. All thumbnails and normal resolution files are already there because of two reasons: there are not only used by CPG, and the CPG-way of generating these images is not optimal (this is a ImageMagick issue: thumbnails and normal resolution files shouldn't contain all the Exif and comment stuff, and they should be progressive).

gromeck
Title: Delete pictures anyway
Post by: Joachim Müller on October 21, 2003, 12:52:42 am
hehe - I can see you're some advanced user... :wink:

Most users don't understand about thumbnail and intermediate sized pic creation issues enough to care, so let me put this clear for those reading this thread: unless you have some other means of creating the thumbs and intermediate pics in the folders (read: create it on your client and upload it with the full-size pics), you must have permissions set to /albums and all subfolders as stated in the readme (777 or 755 depending on your webhost/server config).

I don't think this feature will actually make it into a release (as very few will actually use it and it'd confuse most users). Why don't you code it (you probably already have :wink: ) and share it as add-on?

GauGau
Title: Delete pictures anyway
Post by: gromeck on October 21, 2003, 01:09:59 am
... because the change is just to delete two lines in the code!
Hmm, this 'add-on' would be a 'del-on' :)

A patch file just left my outgoing mailbox into your direction.

gromeck