npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

capacitor-image-cropper

v1.1.1

Published

A Capacitor plugin for image cropping on Android, leveraging the UCrop library for seamless cropping functionality. iOS support is coming soon!

Readme

🌟 Available Now on Android, with iOS Support Coming Soon! 🌟

🎨 Capacitor Image Cropper

The Capacitor Image Cropper plugin offers a powerful and user-friendly way to crop images in your mobile applications. With this plugin, you can effortlessly select and crop images to meet your desired dimensions, ensuring your app looks polished and professional! ✨

🚀 Features

  • Flexible Cropping Options: Crop images with customizable width, height, and aspect ratios. 📏
  • Quality Control: Adjust the quality of the resulting image, balancing fidelity and file size. 📸
  • Circle Cropping: Optionally crop images in a circular shape for a unique visual flair. 🔵
  • Cross-Platform Support: Works seamlessly on both iOS and Android platforms. 📱
  • uCrop Integration: For Android, we utilize the powerful uCrop library, providing a robust and feature-rich cropping experience. 🎉

📚 Usage

To get started with the Capacitor Image Cropper plugin, simply install it in your project and follow the provided documentation for implementation details.

Transform your images effortlessly with the Capacitor Image Cropper plugin! 🌈

🛠️ Adding JitPack Repository

To add the JitPack repository, navigate to your android/gradle.build file and include the following configuration:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}

📦 Install

Run the following commands to install the plugin:

npm install capacitor-image-cropper
npx cap sync

📖 API

crop(...)

crop(options: CropOptions) => Promise<CropResult>

| Param | Type | | ------------- | --------------------------------------------------- | | options | CropOptions |

Returns: Promise<CropResult>


Interfaces

CropResult

| Prop | Type | Description | | ------------ | ------------------- | --------------------------------------------------------------------------------------- | | path | string | The path to the cropped image On Android: content:// or file:// URI On iOS: file:// URI | | base64 | string | Base64 encoded image data (optional, web only) |

CropOptions

| Prop | Type | Description | Default | | ------------------------------- | -------------------- | --------------------------------------------------------------------------------------------- | ---------------------- | | source | string | The path or url of the image to crop Can be a local file path, content:// uri, or file:// uri | | | quality | number | Quality of the resulting image, between 0-100 | 90 | | circle | boolean | Whether to crop the image in a circle | false | | width | number | Maximum width of the resulting image | 300 | | height | number | Maximum height of the resulting image | 300 | | aspectRatioX | number | Aspect ratio X for crop box (width/height) e.g., 1 for square | 1 | | aspectRatioY | number | Aspect ratio Y for crop box (height/width) e.g., 1 for square | 1 | | activeControlsWidgetColor | string | Color of the active controls widget | "#9ef500" |


👤 Author

Rahul Kumar Sharma

Passionate developer and creator of the Capacitor Image Cropper plugin.

💬 Message

Thank you for using the Capacitor Image Cropper! Your feedback and contributions are always welcome. Let's make image cropping a breeze for everyone! 🌟

🤝 Collaboration

We welcome collaboration! If you have ideas, suggestions, or would like to contribute to the project, feel free to reach out or submit a pull request. Together, we can enhance this plugin and make it even better! 🚀


🎉 Special Thanks

A big shoutout to the uCrop library for providing an excellent cropping experience on Android! Your contributions make this plugin even more powerful! 🙌