81 Commits

Author SHA1 Message Date
plegall
b3286ff4ee (cp e3c80efe6) fixes #2494 only picture_ext files can be resized after upload 2025-12-29 22:21:44 +01:00
plegall
a12db50159 (cp ff633b713) Change syntax order of all imagemagick to match IM7 syntax 2025-12-29 15:51:53 +01:00
plegall
57bb2f3bf9 (cp 2583591a6) imagick7 expects input file before options 2025-12-29 15:51:38 +01:00
Linty
18bb865a23 fixes #2411 disable 3xl and 4xl by default
- Add 3XL and 4XL sizes to defaults but keep them disabled by default
- Update admin restore default derivatives resets sizes and clears cache
- Update migration 177 => updates existing installs: set 3XL/4XL as disabled
2025-09-19 18:49:05 +02:00
RushLana
3293b329e9 Implement imagick command fix
`pwg_image::get_ext_imagick_command()` get the imagick command (convert or magick)
replace all convert with pwg_image::get_ext_imagick_command()
2025-08-12 17:06:26 +02:00
Perrom
d0ac05d951 fixes #2353 update images with upload form (#2385)
Add a mode to update photos with the upload form. Modify the upload formats form, so that it will update the photo with the same file extension.
2025-07-31 10:41:01 +02:00
plegall
798f30ea51 issue #2390 avoid generating duplicate paths during upload 2025-07-15 14:14:49 +02:00
Dmitry Ivanov
d58dba671e Fix missing EXIF metadata for images uploaded in HEIC format
The representative jpg file produced for image uploaded in HEIC
format is used later to obtain EXIF metadata. Hence don't "strip"
HEIC file metadata when corresponding representative is prepared.
2023-12-23 12:52:27 +01:00
plegall
188be4849c issue #860 do not force default value for upload_detect_duplicate 2023-10-15 17:06:50 +02:00
plegall
439f275d4e fixes #860 detect duplicates during upload 2023-10-15 13:11:10 +02:00
Phlogi
79e91e3296 Support webp format (#1785)
* consider webP as an input and output format, meaning a derivative from webp is still a webp
2023-09-11 17:10:52 +02:00
plegall
407cabcbe9 fixes #1966 support for EPS files (copied from Piwigo.com) 2023-08-21 19:00:01 +02:00
plegall
8bf4f6abdf fixes #1965 support for PSD files (copied from Piwigo.com) 2023-08-21 18:38:17 +02:00
plegall
4ac772224f issue #1959 support for HEIC file format
* Piwigo produces an image.jpg as representative of image.heic
* optimized pixels dimensions of the representative, based on the XXL derivative width*height
2023-08-18 14:15:08 +02:00
plegall
b04befd2b4 fixes #1770 no specific need to detect TIFF files 2022-10-29 16:21:32 +02:00
plegall
e7317a7fe4 fix code styling after 9d3ee3c 2022-07-29 15:40:02 +02:00
Eddy Lelièvre-Berna
9d3ee3c85d Fixes #709 with new FFmpeg command. (PR #756)
In addition, the time from which the poster is generated is now always correct and an attempt is performed with avconv if FFmpeg is not installed.
2022-07-29 15:28:31 +02:00
plegall
3a63eccb0e issue #389 partial back-end implementation of multiple formats web upload 2022-06-06 16:31:54 +02:00
Ana Els
65acb988db A couple of minor PHP 8 fixes that can be applied now 2021-08-03 10:54:52 +02:00
plegall
ac0d1a5b47 fixes #1419 add photos in a lounge as a temporary space
* at the end of the upload of after a maximum duration, move the photos from the lounge to their actual categories.
* do not invalidate user cache when photos are added in the lounge, thus avoiding to rebuild cache on every photo uploaded
* the lounge system activates itself only beyond 50k (by default) photo
2021-06-11 16:42:48 +02:00
plegall
3e58f67c0f fixes #525 add trigger at the end of add_uploaded_file 2020-10-26 16:26:31 +01:00
plegall
fa8996e10f issue #1073 prevents from making uploaded file executable
* for the name of the file in buffer directory, do not use the name given by the user, but the md5 of the name without extension
* function add_uploaded_file deletes uploaded file if not expected
2019-09-20 16:26:21 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
plegall
940d1d2e8c issue #552
* many more admin actions are logged into activity table
* use the activity.details as an associative array (serialized in database)
2019-04-01 16:19:09 +02:00
plegall
9f6e3e9080 fixes #979 derivative cache generation works even for file with representative picture
Cache medium size, instead of thumbnail.
2019-03-08 15:16:08 +01:00
plegall
6ec3f2d0fa fixes #600, avoid html in web uploaded filenames 2017-01-27 11:13:00 +01:00
plegall
be671c1401 fixes #322, add {m4v,ogg,ogv,webm,webmv} for ffmpeg on upload 2016-02-23 13:50:52 +01:00
plegall
c789347c51 happy new year 2016, all headers updated 2016-01-14 12:17:58 +01:00
plegall
c44a5e2890 feature #293, also process videos
... as in Piwigo 2.7, to keep the same level of features. Plugin VideoJS may provide a better algorithm.
2016-01-14 11:21:04 +01:00
plegall
8ba7a1587a feature #293 trigger to generate pwg_representative
* new function upload_file_pdf and upload_file_tiff
* code to handle videos removed for now (discussion with @xbgmsharp)
2015-12-15 10:12:46 +01:00
plegall
379398d917 feature 3067: upload any file type with the new HTML5 upload form.
$file_types = conf['upload_form_all_types'] ? $conf['file_ext'] : $conf['picture_ext'];

By default, conf['upload_form_all_types'] = false;


git-svn-id: http://piwigo.org/svn/trunk@29124 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-30 13:48:35 +00:00
rvelices
3c13387dfd since number of accepted args not required for add_event_handler, simplify calls
git-svn-id: http://piwigo.org/svn/trunk@28714 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-06-18 19:51:42 +00:00
mistic100
636650309a Update headers to 2014. Happy new year!!
git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-05 00:19:25 +00:00
plegall
483cce2612 feature 2869 added: support TIFF files on web upload (requires ext_imagick)
git-svn-id: http://piwigo.org/svn/trunk@25929 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-12-12 10:34:55 +00:00
mistic100
ae707279a1 remove all array_push (50% slower than []) + some changes missing for feature:2978
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-10-19 17:43:04 +00:00
plegall
4bc775e479 update Piwigo headers to 2013 (the end of the world didn't occur as expected on r12922)
git-svn-id: http://piwigo.org/svn/trunk@19703 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-01-01 12:35:02 +00:00
rvelices
c918bb9209 bug 2725: Piwigo isn't compatible with suPHP + better handling of watermark upload errors
git-svn-id: http://piwigo.org/svn/trunk@17675 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-08-30 19:20:00 +00:00
plegall
6a4f125750 multisize: remove obsolete function file_path_for_type
git-svn-id: http://piwigo.org/svn/trunk@14829 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-05-07 13:44:28 +00:00
plegall
796b6b3ffe feature 2606: second step on multiple size configuration screen redesign.
Configuration settings are saved on form submission.

The old screen is still available for tests.

Default resize quality set to 95 instead of 85.


git-svn-id: http://piwigo.org/svn/trunk@14221 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-04-19 14:43:30 +00:00
plegall
2ec7183adb feature 2604: support rotation on derivatives
git-svn-id: http://piwigo.org/svn/trunk@13843 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-04-01 00:02:36 +00:00
mistic100
a25fe0c7e8 feature 2567: in IMAGES_TABLE the field "name" is prefilled with the filename
git-svn-id: http://piwigo.org/svn/trunk@13082 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-10 14:44:20 +00:00
plegall
74fc041634 feature 2562 added: pre-cache thumbnail at upload time
git-svn-id: http://piwigo.org/svn/trunk@13030 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-02-05 01:09:53 +00:00
rvelices
c6265c515d feature 2548 multisize - implement delete_element_derivatives
git-svn-id: http://piwigo.org/svn/trunk@12917 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 21:02:16 +00:00
plegall
b18e3c8a80 feature 2548 (multiple size): better delete derivatives in add_uploaded_file
function when performing an update of a photo.


git-svn-id: http://piwigo.org/svn/trunk@12907 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 00:17:39 +00:00
plegall
f7421e5789 feature 2548 (multiple sizes): adapt the web API method pwg.images.add (used
by pLoader, Digikam, Lightroom, iPhoto), pwg.images.checkFiles (pLoader only).

The "resize" parameter was removed for pwg.images.add since this behavior
becomes the default behavior in Piwigo 2.4.

Just like pwg.images.addSimple, pwg.images.add now uses the add_uploaded_file
function (next step is to merge pwg.images.add and pwg.images.addSimple)


git-svn-id: http://piwigo.org/svn/trunk@12906 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 00:11:14 +00:00
plegall
cac417c74b feature 2548, multiple size:
* adapt the upload script

* remove the resize settings screen

* add a new screen [Administration > Configuration > Options > Photo Sizes]
  with the ability to resize original after upload


git-svn-id: http://piwigo.org/svn/trunk@12879 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-12 21:37:28 +00:00
rvelices
d0b5df605c feature 2548 multisize
- rewrote local site sync + metadata sync

git-svn-id: http://piwigo.org/svn/trunk@12831 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-03 20:21:13 +00:00
patdenice
4bbb04fa60 Bug:2472
Thumbnails are not cropped during upload

git-svn-id: http://piwigo.org/svn/trunk@12443 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-14 10:43:48 +00:00
patdenice
aeae5476e1 Deactivate auto-rotation for thumbnail creation.
git-svn-id: http://piwigo.org/svn/trunk@12258 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-29 13:15:12 +00:00
flop25
b658b84544 bug:2292
Fixed the spelling of a function name.
convert_shortand_to_bytes into
convert_shorthand_to_bytes


git-svn-id: http://piwigo.org/svn/trunk@10858 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-05-12 13:24:09 +00:00