[BUG] Disabling JPEG Compression doesn't actually disable it and exported PDFs still get compressed

Open
#882 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, ios
Domain
mobile

Research direction

The report gives a clean repro but no code pointers: the PDF export settings screen is where JPEG quality is set to 0, and the export path is where that value should be read. Start by locating the iOS PDF export settings view and following the quality value into the PDF generation code; check whether 0 is treated as a valid quality or falls back to a default. Done when exporting with quality 0 produces PDFs whose embedded images are not re-encoded.

Written by the indexing model from the issue text.

Description

bug done
Which app is your issue for

Document Scanner

Version

1.19.0
Build 88

IMG_7008
What platform are you using?

iOS

OS Version

27.2.1

What happened?

I had issues with PDF export.

I started exporting PDFs but they get compressed. I thought if I disable JPEG compression, the PDF would export in the highest quality like on Doc Scanner. But I was wrong. There was still compression.
The exact steps I took to disable JPEG compression were:
Open OSS Document Scanner --> Go to Settings --> Opened PDF Export settings --> Selected JPEG Quality --> Set JPEG Quality to 0 --> See 'Image 1'.
I did these steps as the description below JPEG quality clearly states that compression will be disabled when I set it to 0. But that didn't happen.

I've adjusted image size threshold and image scale but even that doesn't solve the compression issue.

Image 1
Relevant log output

Code of Conduct
  • I agree to follow this project's Code of Conduct
Dominant language
C++
Stars
2.7k
Forks
153
Avg merge
9h 56m
Merged PRs (30d)
121

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ossappscollective/OSS-DocumentScanner

All issues in ossappscollective/OSS-DocumentScanner

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.