vinaygaba / rubberstamp Goto Github PK
View Code? Open in Web Editor NEW📫 RubberStamp is an Android library that makes it easy for you to add a watermark to your images.
📫 RubberStamp is an Android library that makes it easy for you to add a watermark to your images.
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.
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.
It would be nice to be able to stretch the watermark automatically across the bitmap after the text has been specified.
If the watermark is too long, can you add automatic wrap?
It would be super useful if the rubber stamp could be another drawable or bitmap instead of supporting just a text.
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
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?
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.
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.
When the watermark is provided as a bitmap, it does not draw the watermark at the appropriate location.
Is it possible to add YUV supported?
Is it possible to add watermark on jni without decode bitmap?
Is there any method If I can get the image URI after stamping?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.