Delete pictures anyway Delete pictures anyway
 

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

Delete pictures anyway

Started by gromeck, October 20, 2003, 03:02:28 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

gromeck

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

Joachim Müller

they can't be added to a non-writable dir afaik.

GauGau

gromeck

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

Joachim Müller

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

gromeck

... 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