{"id":13400218,"url":"https://github.com/davemorrissey/subsampling-scale-image-view","last_synced_at":"2026-10-18T22:29:42.224Z","repository":{"id":10271047,"uuid":"12384353","full_name":"davemorrissey/subsampling-scale-image-view","owner":"davemorrissey","description":"Android library (AAR). Highly configurable, easily extendable deep zoom view for displaying huge images without loss of detail. Perfect for photo galleries, maps, building plans etc.","archived":false,"fork":false,"pushed_at":"2024-04-22T02:45:16.000Z","size":57935,"stargazers_count":8008,"open_issues_count":49,"forks_count":1236,"subscribers_count":202,"default_branch":"master","last_synced_at":"2026-10-12T06:19:07.669Z","etag":null,"topics":["android","android-lib","android-library","android-libs","deep-zoom-images","large-images","pan","scale","zoom-gestures","zoom-images"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davemorrissey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-08-26T16:45:25.000Z","updated_at":"2026-10-12T03:45:22.000Z","dependencies_parsed_at":"2024-06-18T15:30:51.999Z","dependency_job_id":"b01c9383-4c98-402e-8b9f-cca4cc7e5865","html_url":"https://github.com/davemorrissey/subsampling-scale-image-view","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/davemorrissey/subsampling-scale-image-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemorrissey%2Fsubsampling-scale-image-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemorrissey%2Fsubsampling-scale-image-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemorrissey%2Fsubsampling-scale-image-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemorrissey%2Fsubsampling-scale-image-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davemorrissey","download_url":"https://codeload.github.com/davemorrissey/subsampling-scale-image-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemorrissey%2Fsubsampling-scale-image-view/sbom","scorecard":{"id":325564,"data":{"date":"2025-08-11","repo":{"name":"github.com/davemorrissey/subsampling-scale-image-view","commit":"173e421fdbfa971fe8db2d943c1bd758ce679d24"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 6/27 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v3.10.0 not signed: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/10097365","Warn: release artifact v3.9.0 not signed: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8744843","Warn: release artifact v3.8.0 not signed: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8543254","Warn: release artifact v3.7.2 not signed: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8339624","Warn: release artifact v3.7.1 not signed: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8261418","Warn: release artifact v3.10.0 does not have provenance: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/10097365","Warn: release artifact v3.9.0 does not have provenance: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8744843","Warn: release artifact v3.8.0 does not have provenance: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8543254","Warn: release artifact v3.7.2 does not have provenance: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8339624","Warn: release artifact v3.7.1 does not have provenance: https://api.github.com/repos/davemorrissey/subsampling-scale-image-view/releases/8261418"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T02:25:07.681Z","repository_id":10271047,"created_at":"2025-08-18T02:25:07.681Z","updated_at":"2025-08-18T02:25:07.681Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38342766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-lib","android-library","android-libs","deep-zoom-images","large-images","pan","scale","zoom-gestures","zoom-images"],"created_at":"2024-07-30T19:00:49.657Z","updated_at":"2026-10-18T22:29:41.432Z","avatar_url":"https://github.com/davemorrissey.png","language":"Java","funding_links":[],"categories":["GPU computing","ImageView","Libraries","Java","Libs"],"sub_categories":["ImageView","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"Subsampling Scale Image View\n===========================\n\nA custom image view for Android, designed for photo galleries and displaying huge images (e.g. maps and building plans) without `OutOfMemoryError`s. Includes pinch to zoom, panning, rotation and animation support, and allows easy extension so you can add your own overlays and touch event detection.\n\nThe view optionally uses subsampling and tiles to support very large images - a low resolution base layer is loaded and as you zoom in, it is overlaid with smaller high resolution tiles for the visible area. This avoids holding too much data in memory. It's ideal for displaying large images while allowing you to zoom in to the high resolution details. You can disable tiling for smaller images and when displaying a bitmap object. There are some advantages and disadvantages to disabling tiling so to decide which is best, see [the wiki](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/02.-Displaying-images).\n\n#### Guides\n\n* [Releases \u0026 downloads](https://github.com/davemorrissey/subsampling-scale-image-view/releases)\n* [Installation and setup](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/01.-Setup)\n* [Image display notes \u0026 limitations](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/02.-Displaying-images)\n* [Using preview images](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/03.-Preview-images)\n* [Handling orientation changes](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/05.-Orientation-changes)\n* [Advanced configuration](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/07.-Configuration)\n* [Event handling](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/09.-Events)\n* [Animation](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/08.-Animation)\n* [Extension](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/10.-Extension)\n* [Reference (JavaDocs)](http://davemorrissey.github.io/subsampling-scale-image-view/javadoc/)\n\n#### Migration guides\n\nVersions 3.9.0, 3.8.0 and 3.0.0 contain breaking changes. Migration instructions can be found [in the wiki](https://github.com/davemorrissey/subsampling-scale-image-view/wiki/X.--Migration-guides).\n\n#### Download the sample app\n\n[![Get it on Google Play](docs/images/google_play.png)](https://play.google.com/store/apps/details?id=com.davemorrissey.labs.subscaleview.sample)\n\n[Kotlin Sample App on GitHub](https://github.com/davemorrissey/ssiv-kotlin-sample)\n\n#### Demo\n\n![Demo](docs/images/demo.gif)\n\n## Features\n\n#### Image display\n\n* Display images from assets, resources, the file system or bitmaps\n* Automatically rotate images from the file system (e.g. the camera or gallery) according to EXIF\n* Manually rotate images in 90° increments\n* Display a region of the source image\n* Use a preview image while large images load\n* Swap images at runtime\n* Use a custom bitmap decoder\n\n*With tiling enabled:*\n\n* Display huge images, larger than can be loaded into memory\n* Show high resolution detail on zooming in\n* Tested up to 20,000x20,000px, though larger images are slower\n\n#### Gesture detection\n\n* One finger pan\n* Two finger pinch to zoom\n* Quick scale (one finger zoom)\n* Pan while zooming\n* Seamless switch between pan and zoom\n* Fling momentum after panning\n* Double tap to zoom in and out\n* Options to disable pan and/or zoom gestures\n\n#### Animation\n\n* Public methods for animating the scale and center\n* Customisable duration and easing\n* Optional uninterruptible animations\n\n#### Overridable event detection\n* Supports `OnClickListener` and `OnLongClickListener`\n* Supports interception of events using `GestureDetector` and `OnTouchListener`\n* Extend to add your own gestures\n\n#### Easy integration\n* Use within a `ViewPager` to create a photo gallery\n* Easily restore scale, center and orientation after screen rotation\n* Can be extended to add overlay graphics that move and scale with the image\n* Handles view resizing and `wrap_content` layout\n\n## Quick start\n\n**1)** Add this library as a dependency in your app's build.gradle file.\n\n```gradle\ndependencies {\n    implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'\n}\n```\n\nIf your project uses AndroidX, change the artifact name as follows:\n\n```gradle\ndependencies {\n    implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'\n}\n```\n\n**2)** Add the view to your layout XML.\n\n```xml\n\u003cLinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\" \u003e\n\n    \u003ccom.davemorrissey.labs.subscaleview.SubsamplingScaleImageView\n        android:id=\"@+id/imageView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"/\u003e\n\n\u003c/LinearLayout\u003e\n```\n\n**3a)** Now, in your fragment or activity, set the image resource, asset name or file path.\n\n```java\nSubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(id.imageView);\nimageView.setImage(ImageSource.resource(R.drawable.monkey));\n// ... or ...\nimageView.setImage(ImageSource.asset(\"map.png\"))\n// ... or ...\nimageView.setImage(ImageSource.uri(\"/sdcard/DCIM/DSCM00123.JPG\"));\n```\n\n**3b)** Or, if you have a `Bitmap` object in memory, load it into the view. This is unsuitable for large images because it bypasses subsampling - you may get an `OutOfMemoryError`.\n\n```java\nSubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(id.imageView);\nimageView.setImage(ImageSource.bitmap(bitmap));\n```\n\n## Photo credits\n\n* San Martino by Luca Bravo, via [unsplash.com](https://unsplash.com/photos/lWAOc0UuJ-A)\n* Swiss Road by Ludovic Fremondiere, via [unsplash.com](https://unsplash.com/photos/3XN-BNRDUyY)\n\n## About\n\nCopyright 2018 David Morrissey, and licensed under the Apache License, Version 2.0. No attribution is necessary but it's very much appreciated. Star this project if you like it!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemorrissey%2Fsubsampling-scale-image-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavemorrissey%2Fsubsampling-scale-image-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemorrissey%2Fsubsampling-scale-image-view/lists"}