-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poor image quality #172
Comments
Please edit your opening post using the bug or feature template, will be reopened once the opening post is updated. |
data/images or data/tmp ? |
It's about |
tmp folder was introduced to store the original before a filter is applied. |
Alright, thanks for that. So maybe it could be renamed to However, as I have not enabled/used any filters, why are the images in |
You can adjust the quality here if needed: Change from 80 to 100. |
You can adjust the folder name via config/admin panel already. |
Thanks for this hint, will do!
Yeah, you're right! I haven't considered that as |
Interestingly, when changing www-data@raspberrypi:~/html/data$ find . -name 4f538fab4387de592472991c0c0eb189.jpg -exec ls -lh {} \;
-rw-r--r-- 1 www-data www-data 3.0M Nov 1 10:57 ./tmp/4f538fab4387de592472991c0c0eb189.jpg
-rw-r--r-- 1 www-data www-data 73K Nov 1 10:57 ./keying/4f538fab4387de592472991c0c0eb189.jpg
-rw-r--r-- 1 www-data www-data 18K Nov 1 10:57 ./thumbs/4f538fab4387de592472991c0c0eb189.jpg
-rw-r--r-- 1 www-data www-data 6.4M Nov 1 10:57 ./images/4f538fab4387de592472991c0c0eb189.jpg |
GD is used for image processing here. it is creating a new image from the original file which is used by Photobooth. it's not a real 1:1 copy like copy and paste. |
You might want to take a look here too: |
That doesn't solve the issue and is dangerous. Assume someone implements a garbage collector for the temp folder, than all your images are gone. |
If it's dangerous why we allow to change the path via config / admin panel? |
The question is, what is the main purpose of this folder? From what I've seen so far in the code, it doesn't really serve as a temporary folder as such. It's rather a permanent storage for the original files and hence should be probably renamed to reflect its actual purpose. |
Maybe we can think about renaming it to
Not much lines to adjust. And yeah, somehow it is a temporary folder as it is used for the original files before they get adjusted for the booth. No user can see them on the webpage. We could also think about adding an option to keep or remove the original files. |
That would be an option, but the name should always reflect the use of it. I think we can also skip the jpeg conversion, if no filters/borders and so on are applied. That would also enhance the performance. |
#175 was merged, so I close this issue. |
Is your feature request related to a problem? Please describe.
The jpgs in the data folder only are around 600K in size (whereas they should be ~3M). I haven't found any setting that would allow me to set the compression but it appears that during image processing the JPGs are compressed/whatever.
Describe the solution you'd like
Configuration options exist that allow the user to control the image processing behavior, e.g. turn off any compression/allow to keep and use the original images.
Describe alternatives you've considered
n/a
Additional context
The text was updated successfully, but these errors were encountered: