nvhoc / sanselanandroid Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/sanselanandroid
Automatically exported from code.google.com/p/sanselanandroid
Any guide?
Any wiki?
What can it do and what can't it do?
Can it, for example, allow to copy Exif from one file to another (useful when
resizing images, for example) ?
Original issue reported on code.google.com by [email protected]
on 11 Feb 2014 at 7:39
What steps will reproduce the problem?
Trying to create a GPS exif element with certain constants will throw an
exception. These two constants in particular:
TiffOutputField altitudeOutField =
TiffOutputField.create(TiffConstants.GPS_TAG_GPS_ALTITUDE, outputSet.byteOrder,
altitude);
TiffOutputField altitudeRefField =
TiffOutputField.create(TiffConstants.GPS_TAG_GPS_ALTITUDE_REF,
outputSet.byteOrder,
GPSTagConstants.GPS_TAG_GPS_ALTITUDE_REF_VALUE_ABOVE_SEA_LEVEL);
Looking in GPSTagConstants.java, it shows these two TagInfo classes are created
with a length of -1. The exception generation happens because of this:
TiffOutputField.java:
public static TiffOutputField create(TagInfo tagInfo, int byteOrder,
Number number) throws ImageWriteException
{
if (tagInfo.dataTypes == null || tagInfo.dataTypes.length < 1)
throw new ImageWriteException("Tag has no default data type.");
FieldType fieldType = tagInfo.dataTypes[0];
if (tagInfo.length != 1)
throw new ImageWriteException("Tag does not expect a single value.");
byte bytes[] = fieldType.writeData(number, byteOrder);
return new TiffOutputField(tagInfo.tag, tagInfo, fieldType, 1, bytes);
}
Since length == -1, the exception is thrown.
What is the expected output? What do you see instead?
Expected output is that this Exif element can be created and added to the
directory.
What version of the product are you using? On what operating system?
Latest source from subversion. Android 2.2 on HTC EVO, as well as Android
2.2.1 on Nexus One.
Please provide any additional information below.
I'm not sure what the -1 corresponds to, or what the length field is. I could
try changing the GPSTagConstants.java definition, but I'm not sure of what
effects this may cause.
Original issue reported on code.google.com by [email protected]
on 22 Jan 2011 at 3:39
Hi guys, dont know to post this to where now?
Im stuck with this problem too long.
Does this library support PNG file and support to change PPI of image on
android?
Thanks you for reading.
Original issue reported on code.google.com by [email protected]
on 4 Nov 2011 at 1:45
Android has an ExifInterface class, but it is buggy. This patch contains one
that actually works most of the time. Wondering if we should merge it back into
this project.
https://issues.apache.org/jira/browse/SANSELAN-51
Original issue reported on code.google.com by [email protected]
on 23 Jun 2011 at 6:34
Exactly the same issue descried in here:
https://issues.apache.org/jira/browse/SANSELAN-21
The problem is that interoperatibility index has the same field id as gps
latitude, but in different directories.
I'm attaching a patch which worked for me. It includes also the patch for
JpegImageMetadata merged from the patch for SANSELAN-21, although it wasn't
necessary in my case.
Original issue reported on code.google.com by jabavin
on 29 Apr 2010 at 12:15
Attachments:
just a note that it's already in 2.x firmware:
http://developer.android.com/reference/android/media/ExifInterface.html
for older devices your lib would still be useful but please provide a ".jar"
and simple code of usage
Original issue reported on code.google.com by [email protected]
on 3 Jun 2010 at 1:03
Sorry, seems to be elementary question...
But i'm really confused in using this project?
how can I use it in eclipse?
is it a jar labrary? or sth else?
Original issue reported on code.google.com by [email protected]
on 16 Oct 2014 at 11:39
What steps will reproduce the problem?
1. Call one of the ExifRewriter.updateExifMetadataXXXX methods to update
the EXIF of a large image (e.g. one with 6MBytes of image data).
What is the expected output? What do you see instead?
Updating the EXIF should happen without out-of-memory errors thrown by
Android or even emergency soft-reference clean-up by Android.
Please use labels and text to provide additional information.
OutOfMemory, Large Image
Original issue reported on code.google.com by [email protected]
on 3 Oct 2009 at 4:03
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.