You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nextcloud server is configured to allow multiple users to upload photographs to shared folders owned by devices (a digital picture frames connected by davfs)
Users will be uploading from smartphones with variable image sizes between 4-8 MB. To address download sizes, a jpegoptim script is being run to reduce the image quality. This script is as follows:
The script is being called by the following command inside of the flow:
/home/myuser/jpegoptim.sh %n
Expected behaviour
The jpegoptim script should be triggered only when jpeg files are being uploaded to a specific account / directory within Nextcloud. Here is an example regex expression that reflects the desired level of granularity:
The "File name" criteria is limited to the file name itself, and is thus global within the Nextgen server. For this use case, that means that any jpeg / jpg files uploaded to the server will be compressed, regardless of location or need.
Server configuration detail
Operating system: Linux 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64
Use case for this enhancement request
Nextcloud server is configured to allow multiple users to upload photographs to shared folders owned by devices (a digital picture frames connected by davfs)
Users will be uploading from smartphones with variable image sizes between 4-8 MB. To address download sizes, a jpegoptim script is being run to reduce the image quality. This script is as follows:
The script is being called by the following command inside of the flow:
/home/myuser/jpegoptim.sh %n
Expected behaviour
The jpegoptim script should be triggered only when jpeg files are being uploaded to a specific account / directory within Nextcloud. Here is an example regex expression that reflects the desired level of granularity:
/^\/mnt\/nextclouddata\/userA\/files\/"Picture Frame"\/.+(\.jpg|\.jpeg)$/
Actual behaviour
The "File name" criteria is limited to the file name itself, and is thus global within the Nextgen server. For this use case, that means that any jpeg / jpg files uploaded to the server will be compressed, regardless of location or need.
Server configuration detail
Operating system: Linux 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64
Webserver: Apache/2.4.51 (Ubuntu) (apache2handler)
Database: mysql 10.3.31
PHP version:
7.4.3
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 22.2.3 - 22.2.3.0
Updated from an older Nextcloud/ownCloud or fresh install: Fresh Install
Where did you install Nextcloud from: https://download.nextcloud.com/server/releases/nextcloud-22.2.3.tar.bz2
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: None
Are you using encryption:
Are you using an external user-backend, if yes which one: Active Directory
The text was updated successfully, but these errors were encountered: