justadudewhohacks / justadudewhohacks/opencv4nodejs
Set PNG compression level in imwrite
Open
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 826
- PR merge metrics
- No merged PRs in 30d
Description
I was trying to set PNG compression level when writing image to a file with imwriteAsync, but haven't found a way to do it.
In Python, that would be:
`cv2.imwrite(filename, img, [cv2.IMWRITE_PNG_COMPRESSION, 9])`
Is it possible to set this option in opencv4nodejs? Thank you.
Contributor guide
Research direction
Start at the imwriteAsync entry point and compare its available arguments with the PNG compression option shown for cv2.imwrite. Determine how this binding exposes write parameters, then verify that a caller can select a PNG compression level and that the resulting PNG is written successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, nodejs
- Domain
- computer-vision
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100