montage
montage copied to clipboard
Resolution threshold can not be set
The threshold value for the image resolution can not be set during the import. The default value of 2 MP is used implicitly.
Instruction for dev (for debug):
- Create a new campaign and then a new round, and set the value for resolution while creating Round 1.
- Check whether it is saving the value in the DB or not
- Then check the function to see whether it is being run to disqualify
Hey,
I was working on this issue and ig at present the issue has been solved. This is what I've done,
- Created a new campaign and a new round.
- For testing I made the min resolution as 3MB.
- Created a new round and one image was rejected due to the size
These are what I've checked on the back-end ( according to this comment )
- I checked the DB and the new min resolution is present
- The dq_by_resolution function was called in the back-end
Output of the DB :
sqlite> SELECT id, name, config from rounds ORDER BY id DESC LIMIT 5;
1|Round 1|{"show_link": false, "show_filename": true, "dq_by_upload_date": false,
"dq_by_resolution": true, "dq_by_uploader": true, "dq_by_filetype": true,
"allowed_filetypes": ["jpeg", ".png", ".gif", ".svg", "tiff", ".xcf", "webp"],
"min_resolution": 300000, "dq_coords": false, "dq_organizers": false,
"dq_maintainers": false, "show_stats": false}
So, ig this issue can be closed.