Paperback-iOS / app

Repository to host app releases, issues, and feature requests for Paperback
https://paperback.moe/
665 stars 20 forks source link

[REQUEST] Compressed manga pages option for less storage space usage and less data usage #787

Open milkyautism opened 1 year ago

milkyautism commented 1 year ago

Description This option would allow users to save space with their manga by compressing the chapters and uncompressing them at read time, sacrificing efficiency of data access for more storage space.

How would it improve the App? It would help with saving data, as right now, my use case has Paperback using 12GB of data, which is making it the biggest app on my iPad. Storing chapter data as compressed would be very useful. It could uncompress it and keep it in temp and then when the chapter is done, it removes the temp version, leaving it back to storage saving as it loads the next chapter.

Additional context For people who want it, it could be an option that is enableable on settings, and can even be activated per-extension, allowing even developers to take advantage of it for faster downloads by pulling smaller files to the end user. There can even be even more savings by having it be tuneable (ex. using more lossy encoding like JPEG or HEIC if the user desires to use it.)

Of course this is all optional, so that all parties get the best experience, Like people running the lower end new devices with less storage, but still read tonnes of manga (like me!)

Compression can be done in steps that can be tuned by the user in an "Advanced Storage Setting" method The steps are...

  1. Lossless compression (zipping/compressing the files in a load time to storage balance)
  2. Lossy compression (JPEG quality stored in the compression)
  3. Image Resolution (actual image resolution and quality)
FaizanDurrani commented 1 year ago

There's two parts to this issue

  1. Processing the downloaded pages and compressing them to save space on disk
  2. Requesting already compressed pages from sources

While (1) can be implemented in the app, (2) is completely up to the source implementation. If a source supports compressed pages it can implement a toggle within the source settings.

milkyautism commented 1 year ago

There's two parts to this issue

  1. Processing the downloaded pages and compressing them to save space on disk
  2. Requesting already compressed pages from sources

While (1) can be implemented in the app, (2) is completely up to the source implementation. If a source supports compressed pages it can implement a toggle within the source settings.

Yes this is exactly how i envision the feature.