-
-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Discussed in #505
Originally posted by sunyoung1 December 27, 2025
Hello,
Any way i can increase the image size limit of 5mb?
As most of modern phones take photos larger than 5mb, I would like to know how can i remove this limitation.
Edit:
I used this Dockerfile and it worked but is there a cleaner way to do this?
I also would like to load the photo preview full res instead of being compressed too much
If i try to copy the link of the photo, it will always end with "&w=384&q=75" which is restricting the height and quality.
75% quality is fine but width for 384 is too small
`FROM ghcr.io/oss-apps/splitpro:v1.5.8
WORKDIR /app
COPY next.config.js ./next.config.js
RUN find .next/ -type f -name ".js" | xargs sed -i 's/5242880/52428800/g' &&
find .next/ -type f -name ".js" | xargs sed -i 's/5000000/52428800/g' &&
find .next/ -type f -name "*.js" | xargs sed -i 's/.concat(5,"MB")/.concat(50,"MB")/g'
EXPOSE 3000
CMD ["node", "server.js"]`