Comments (5)
And encoding as base64 can be done as follows (courtesy of Stack Overflow):
// Get the bytes array
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
byte[] byteArray = byteArrayOutputStream .toByteArray();
// Encode the bytes into base64
String encoded = Base64.encodeToString(byteArray, Base64.DEFAULT);
from simple-draw.
I would prefer the linked object without the Base64 string.
Il could at least help making the SVG the same size as the background image if there are no drawings outside it (meaning that the user is annotating the photo).
By the way, I would store the annotations in a database if allowed.
from simple-draw.
I would prefer the linked object without the Base64 string
If we use an absolute path, I think the .svg
would be pretty useless once you move it out from the phone/tablet. If we use a relative path (or maybe just the name), then we need to store this mapping somewhere. I think it would be a tad bit trickier.
from simple-draw.
I would prefer something like the linked object in Inkscape:
<image
sodipodi:relref="IMG_20160708_231027.jpg"
xlink:href="IMG_20160708_231027.jpg"
y="462.69064"
x="7.4576993"
id="image1419"
preserveAspectRatio="none"
height="607.5"
width="1080"
style="image-rendering:auto" />
Anyway the problem is retaining the image position o using a canvas the same size as the picture if there are no drawings outside.
from simple-draw.
from simple-draw.
Related Issues (20)
- Accidental draw occurs when using gesture navigation
- Multi-page drawings HOT 2
- Saving as .png is in reality producing a .jpg, with .png extension only
- Fix the "Show brush size tool"
- App is outdated on F-Droid compared to Google Play HOT 1
- Open screenshot with SimpleDraw HOT 2
- Bug: Rename Conflict Avoidance Logic Breaks File Extensions HOT 2
- Sudden canvas movement when moving with multitouch
- Please make new app for file transfering offline and make a app for document viewing
- Pan. HOT 2
- Consider saving bonus canvas area HOT 1
- Mismatch on rotation (after opening) HOT 1
- App creates file it cannot open HOT 2
- Should 'Undo' undo open file? HOT 2
- Clarify compression artifacts on saved images that user reloads HOT 2
- Oversize action HOT 4
- [BUG] When sharing a drawing it always gets the same name - simple-draw.png
- Support for themed icons HOT 6
- Simple Draw Pro the latest version doesn't start HOT 10
- Add ability to see the zoom level or scale
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-draw.