Comments (8)
Uneducated guess would be that php is not compiled with libjpeg.
That sounds like a very educated guess! Sounds like we're missing a flag here. Initial research leads me to believe it's --with-jpeg-dir=<wherever libjpeg gets installed>
with perhaps libjpeg-dev
as a build-package
. Though I'm not sure whether we need jpeg8 or jpeg9, any idea?
from nextcloud-snap.
configflags:
...
- --with-gd
- --enable-gd-native-ttf
- --with-jpeg-dir=/usr/lib
- --with-freetype-dir=/usr/lib
stage-packages:
...
- libfontconfig1
- libfreetype6
- libjpeg8
build-packages:
...
- libgd-dev
Not sure if jpeg9 is a better option but it was working fine with jpeg8
from nextcloud-snap.
@oparoz are --enable-gd-native-ttf
and --with-freetype-dir
required for this?
from nextcloud-snap.
Not for images, but it's just the proper way to configure GD for a hosting environment so that app developers are less limited. Basic image and text manipulation in PHP is usually a given.
from nextcloud-snap.
Not for images, but it's just the proper way to configure GD for a hosting environment so that app developers are less limited. Basic image and text manipulation in PHP is usually a given.
libjpeg has an obvious use-case (this bug). Do we have a use-case for those other capabilities in Nextcloud? I don't see a big advantage to enabling things "just because"-- this all takes space and increases potential attack surfaces.
from nextcloud-snap.
The most obvious one is watermarking. If someone writes an app which adds a copyright on the image, PHP needs to have access to special methods and to system fonts. Hmmm... This last part rings a bell when trying to configure Imagemagick... fonts might not be easily accessible unless we set an env variable and we can't easily test this functionality since the root path is read-only.
Let's move that to another PR then.
from nextcloud-snap.
@shasderias @oparoz mind giving #25 a look/test? Details for how to test are over there.
from nextcloud-snap.
This was resolved in #25, and will be in the next release (at which point this bug will be closed). Thank you for the excellent bug report!
from nextcloud-snap.
Related Issues (20)
- Apparmor errors smaps_rollup with CODE HOT 2
- PHP OPcache performance tuning to benefit the Nextcloud snap HOT 4
- Unable to play .mkv video files properly HOT 5
- Upgrade to 27.1.8 to fix "Enforce password protection" bug HOT 6
- nextcloud.enable.https lets-encrypt won't work HOT 3
- Upgrade Nextcloud to 28.0.4 HOT 2
- Upgrade Nextcloud to 27.1.8 HOT 1
- Upgrade Nextcloud to 26.0.13
- Upgrade Apache to 2.4.59
- [Solved] File upload - Toastify is Awesome - notice on file uploading of size > 1 mb HOT 3
- Upgrade PHP to 8.2.18
- Curl errors now showing up in the logs HOT 5
- PHP Vulnerability - CVE-2024-2961 HOT 5
- nextcloud.export not exporting userdata HOT 17
- Update Nextcloud to 29
- Update Nextcloud to 28.0.5
- Update Nextcloud to 27.1.9 HOT 1
- NEXTCLOUD VERSION - still 24 as per security scan of nextcloud HOT 1
- Update MySQL to 8.0.37 HOT 1
- MySQL starting with 8.0.37 requires cmake 3.11.2 or newer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloud-snap.