{"id":13908200,"url":"https://github.com/Tourenathan-G5organisation/SiliCompressor","last_synced_at":"2025-07-18T07:30:40.587Z","repository":{"id":44329146,"uuid":"55391954","full_name":"Tourenathan-G5organisation/SiliCompressor","owner":"Tourenathan-G5organisation","description":"A powerful, flexible and easy to use Video and Image compression library for Android.","archived":false,"fork":false,"pushed_at":"2022-11-04T08:23:07.000Z","size":4370,"stargazers_count":1395,"open_issues_count":128,"forks_count":293,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-06-22T13:47:25.527Z","etag":null,"topics":["android","compressor","image","library","media","video"],"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/Tourenathan-G5organisation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"tourenathan","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-04-04T07:13:51.000Z","updated_at":"2025-06-12T17:36:17.000Z","dependencies_parsed_at":"2022-09-11T17:21:59.025Z","dependency_job_id":null,"html_url":"https://github.com/Tourenathan-G5organisation/SiliCompressor","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Tourenathan-G5organisation/SiliCompressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tourenathan-G5organisation%2FSiliCompressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tourenathan-G5organisation%2FSiliCompressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tourenathan-G5organisation%2FSiliCompressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tourenathan-G5organisation%2FSiliCompressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tourenathan-G5organisation","download_url":"https://codeload.github.com/Tourenathan-G5organisation/SiliCompressor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tourenathan-G5organisation%2FSiliCompressor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265720366,"owners_count":23817218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","compressor","image","library","media","video"],"created_at":"2024-08-06T23:02:32.765Z","updated_at":"2025-07-18T07:30:39.925Z","avatar_url":"https://github.com/Tourenathan-G5organisation.png","language":"Java","funding_links":["https://patreon.com/tourenathan"],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# SiliCompressor\nA powerful, flexible and easy to use Video and Image compression library for Android.\n\n\nDescription\n--------\n#### Image \nIt's usually said that \"A picture is worth a thousand words\". Images adds flair and beauty to our android apps, but we usaully have problems with these images due to thier large size. With SiliCompressor you can now compress and use your images more smoothly.\n\n#### Video\nDue to the high resolution of our Smartphone cameras and cameras from other devices, Video files have become large in size and thus difficult for it to be shared with others on social apps, social media and even when we need to upload it on our server. With SiliCompressor you can now compress you video file while maintaining it quality.\n\nCredit\n--------\nThe image compressor part of this project is inspired from [Void Canvas] blog from which the core part of the compressor was done.\nFor the Video Compression part of this project, credit goes to [Jorge E. Hernandez (@lalongooo)] whose codes was used for the core part of the video compressor module.\n\nUsage\n--------\nTo effectively use this library, you must make sure you have added the following permission to your project.\n```java\n\u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/\u003e\n\u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/\u003e\n```\n#### Compress a video file and return the file path of the new video\n```java\nString filePath = SiliCompressor.with(Context).compressVideo(videoUriString, destinationDirectory);\n```\n```java\nString filePath = SiliCompressor.with(Context).compressVideo(videoContentUri, destinationDirectory);\n```\n#### Compress an image and return the file path of the new image\n```java\nString filePath = SiliCompressor.with(Context).compress(uriString, destinationDirectory);\n```\n#### Compress an image and return the file path of the new image while deleting the source image\n```java\nString filePath = SiliCompressor.with(Context).compress(uriString, destinationDirectory, true);\n```\n\n#### Compress an image drawable and return the file path of the new image\n```java\nString filePath = SiliCompressor.with(Context).compress(R.drawable.icon);\n```\n\n#### Compress an image and return the bitmap data of the new image\n```java\nBitmap imageBitmap = SiliCompressor.with(Context).getCompressBitmap(imageUriString);\n```\n\n#### Compress an image and return the bitmap data of the new image while deleting the source image\n```java\nBitmap imageBitmap = SiliCompressor.with(Context).getCompressBitmap(imageUriString, true);\n```\n\n\nDownload\n--------\n#### Gradle\n```groovy\nimplementation 'com.iceteck.silicompressorr:silicompressor:2.2.4'\n```\n\n##### Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.iceteck.silicompressorr\u003c/groupId\u003e\n  \u003cartifactId\u003esilicompressor\u003c/artifactId\u003e\n  \u003cversion\u003e2.2.4\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n##### Ivy\n```xml\n\u003cdependency org='com.iceteck.silicompressorr' name='silicompressor' rev='2.2.4'\u003e\n  \u003cartifact name='silicompressor' ext='pom' \u003e\u003c/artifact\u003e\n\u003c/dependency\u003e\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\nLicense\n--------\nCopyright 2016 [Teyou Toure Nathan][toure]\n\nLicensed under the Apache License, Version 2.0 (the \"License\") and GNU General Public License v2.0;\n\nyou may not use this file except in compliance with the Licenses.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0 and https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n[snap]:  https://oss.sonatype.org/content/repositories/snapshots\n[toure]:  https://www.linkedin.com/in/toure-nathan/\n[Void Canvas]: http://voidcanvas.com/whatsapp-like-image-compression-in-android/\n[Jorge E. Hernandez (@lalongooo)]: https://github.com/lalongooo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTourenathan-G5organisation%2FSiliCompressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTourenathan-G5organisation%2FSiliCompressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTourenathan-G5organisation%2FSiliCompressor/lists"}