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
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'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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"]`
All reactions