Giter Club home page Giter Club logo

sanselanandroid's People

Contributors

streetsofboston avatar

sanselanandroid's Issues

Support for ExifInterface

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

this is already in Android SDK

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

Exception with certain GPS constants

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

how to use it?

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's about PNG file and PPI of image?

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

Fetching GPS Latitude Ref gets Interoperability Index instead of Reference

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:

How do you use this library?

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

Low or out-of-memory reported when writing EXIF into an existing image.

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

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.