Giter Site home page Giter Site logo

vinaygaba / rubberstamp Goto Github PK

View Code? Open in Web Editor NEW
416.0 16.0 69.0 20.26 MB

📫 RubberStamp is an Android library that makes it easy for you to add a watermark to your images.

Java 100.00%
android-library watermark-image java android rubberstamp watermark

rubberstamp's People

Contributors

vinaygaba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rubberstamp's Issues

Ability to specify text style

There are a lot of different text styles (bold, italics, etc). The user of this library should have the ability to specify the style that he wants. It would also be useful to specify other text attributes like shadow, rotation, etc.

Ability to auto size the text

It would be useful if there was a way to set the text to be auto sized if the text has been specified which will be the case almost always.

Proposal

If the watermark is too long, can you add automatic wrap?

add lines of text watermark

how do I add three line(s) of text rubber stamp one by one to a bitmap in BOTTOM_RIGHT position? i have used "\n" in the text content but it doesn't work. please help

OutOfMemoryError

When I use RubberStamp to add a watermark to a 3120x4160 6.62MB image,I got the following crash log。
=========================== crash log start ==============================
--------- beginning of crash
01-29 17:54:17.570 23085-23085/org.highway E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.highway, PID: 23085
java.lang.OutOfMemoryError: Failed to allocate a 51916812 byte allocation with 16777120 free bytes and 19MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:812)
at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
at com.vinaygaba.rubberstamp.RubberStamp.addStamp(RubberStamp.java:55)
=========================== crash log end ==============================

Do I have to reduce the size of the picture?

Adding the ability to tile watermarks

It would be awesome if the library could provide the functionality of tiling a watermark. I think this should override the position provided as it would be covering the entire bitmap. An example of this would be the following:

Feature Image

Add padding/margin to the rubber stamp

It would be great if there was some way to specify some sort of a padding/marging in addition to the RubberStampPosition. Right now the rubber stamp would stick to the edges if I give it a position like BOTTOM_RIGHT. Padding/Margin would be a great addition to this functionality.

Do the work on a background thread

It would make sense for the library to handle the bitmap creation part on a background thread instead of expecting the developer to make the addStamp call on a separate thread.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.