Re: Creating EXIF tags (TiffOutputField) the right way

2016-05-28 Thread Joakim Knudsen
s TiffOutputField exif_comment = new TiffOutputField(TiffConstants.EXIF_TAG_USER_COMMENT.tag, TiffConstants.EXIF_TAG_USER_COMMENT, TiffFieldTypeConstants.FIELD_TYPE_UNDEFINED, b.length, b); Joakim On 22 May 2016 at 15:29, Benedikt Ritter <brit...@apache.org> wrote: > Hello Joak

Re: Creating EXIF tags (TiffOutputField) the right way

2016-05-31 Thread Joakim Knudsen
2016 at 17:39, Benedikt Ritter <brit...@apache.org> wrote: > Hello Joachim, > > Joakim Knudsen <joakim.gr...@gmail.com> schrieb am Sa., 28. Mai 2016 um > 21:10 Uhr: > > > Hi Benedikt, and thanks for replying! > > > > So, if FieldType is unused, maybe the altern

IPTC Caption-Abstract

2016-05-31 Thread Joakim Knudsen
Anyone know how to create this tag, and write it to a JPEG, using Sanselan? IPTCType.IPTC_TYPE_CAPTION_ABSTRACT Joakim

Re: Creating EXIF tags (TiffOutputField) the right way

2016-06-01 Thread Joakim Knudsen
On 1 June 2016 at 14:55, Benedikt Ritter <brit...@apache.org> wrote: > Hello Joakim, > > glad you found out what to do. This would make for a good addition to the > user guide. Would you like to contribute your findings? > > Benedikt > > Joakim Knudsen <joakim.gr

Re: Creating EXIF tags (TiffOutputField) the right way

2016-05-31 Thread Joakim Knudsen
Btw, ENCODING_UTF16 is just a String = "UTF-16LE" (Little Endian) On 31 May 2016 at 19:20, Joakim Knudsen <joakim.gr...@gmail.com> wrote: > Following a post on the User-Commons-Apache log (from 2012), I ended up > with the following code which seems to work. > It write

Creating EXIF tags (TiffOutputField) the right way

2016-05-21 Thread Joakim Knudsen
Hi List! I'm working on an Android app, where I want to read and write "EXIF tags" to JPEG files on the device. Sanselan 0.97 seems to work perfectly, although it's a bit complicated to work with EXIF tags/directories. The specific tags I'm interested in, is EXIF_TAG_USER_COMMENT and

Re: Sanselan support for writing IPTC fields

2017-03-18 Thread Joakim Knudsen
Hi I'm also using Sanselan to read and write both IPTC and EXIF data (in an Android app setting). Seems to be working as it should, but maybe we can help each other out if I share my code? I did a bit of research on EXIF tags, and got help from Phil Harvey at

[imaging] Apache Commons Imaging, for Android?

2017-04-24 Thread Joakim Knudsen
Hi all I've been using "Sanselan v0.97" in my Android app, with some success. After a lot of searching the web, reading the Exif 2.2 standard, and using software like Phil Harvey's ExifTool, I seem to be able to read and write EXIF and IPTC metadata to JPEG files on an Android device. However,

Re: [jexl] How to use math functions with JEXL

2020-04-19 Thread Joakim Knudsen
Hi, Did you import the Math library? import java.lang.Math; Joakim søn. 19. apr. 2020, 07:21 skrev Greenberg, Gary : > I am trying to evaluate an expression that beside simple arithmetic need > to calculate square root. > > I tried sqrt(), Math.sqrt() and java.lang.Math.sqrt and nothing