Skip to content
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

Support inSampleSize and decoding region like Android's BitmapFactory and BitmapRegionDecoder #853

Open
panpf opened this issue Jan 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@panpf
Copy link

panpf commented Jan 3, 2024

I am developing image loading framework and image scaling components for kotlin multiplatform. I need a cross-platform image decoding library that supports decoding region and downsampling, similar to the functions of BitmapFactory and BitmapRegionDecoder in Android. Skiko's Image currently only supports full decoding of images.

Are there any plans to provide decoding region and downsampling support?

@eymar
Copy link
Collaborator

eymar commented Jan 4, 2024

Do you know if there is such a feature in skia?

Since skiko is a kotlin wrapper for skia, it provides a subset of APIs available in skia.

@eymar eymar added the enhancement New feature or request label Jan 8, 2024
@StefanOltmann
Copy link

I would like to see that feature, too.

What I found so far is this:
https://github.com/google/skia/blob/main/src/codec/SkSampledCodec.h

I don't know if this works in general or only for Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants