mirror of
https://github.com/projectsend/projectsend.git
synced 2026-10-04 13:33:22 +00:00
4485e36c5c
Cropping is optional: an upload is used whole until somebody crops it. A crop is a new file cut from the upload with SimpleImage, which the watermark already uses; the upload is kept (logo_original_path) with the box (logo_crop), so cropping again starts from the whole picture and restoring points back at the upload. A box covering the whole image is a restore. The box must lie inside the image, and an image over 25 million pixels is refused before GD decodes it. A new upload, or removing the logo, deletes both files.