Re: [sanselan] how to access raw pixels?

2011-04-18 Thread Damjan Jovanovic
a DataBuffer subclass (depending on the BufferedImage's SampleModel and ColorModel) which can give you an array of byte/short/int etc. Good luck Damjan Jovanovic - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org

Re: [SANSELAN] How to write GPS Altitude?

2011-06-21 Thread Damjan Jovanovic
Please create a bug on Jira and attach the patch, I will commit it. Thank you Damjan On Tue, Jun 21, 2011 at 4:28 PM, tonio09 bizs...@gmail.com wrote: I've extended GPSInfo to read GPSImgDirection and GPSImgDirectionRef. Also, I've changed the field length for these fields in TiffConstants.

Re: [sanselan]

2011-07-05 Thread Damjan Jovanovic
On Mon, Jul 4, 2011 at 11:21 PM, shadab sha...@student.chalmers.se wrote: Hi I get the exception could not read the block when I try to get metadata from images. java.io.IOException: Could not read block (block start: 31742, block length: 53177352, data length: 25713).    at

Re: [sanselan] Unable to read jpeg comment field

2011-12-08 Thread Damjan Jovanovic
On Thu, Dec 8, 2011 at 2:38 PM, Erlend Aakre erlend.aa...@q-free.comwrote: I have 2 images, one has almost no metadata (no EXIF), it just has the JPEG Comment field set (not to be confused with the exif user comment field). When I try to read metadata from it: IImageMetadata meta =

Re: [sanselan] Unable to read jpeg comment field

2011-12-08 Thread Damjan Jovanovic
No, Sanselan didn't have any way to read comments in the last released version. But I just committed a patch to SVN trunk (revision 1211882) that supports reading JPEG comments with: Sanselan.getImageInfo().getComments() If you can't check out and compile SVN, let me know and I can email you a

Re: [sanselan] write IPTC example

2012-02-20 Thread Damjan Jovanovic
On Mon, Feb 20, 2012 at 9:18 PM, Jan Oliver j.oli...@gmx.net wrote: Hi, I would like to edit the keyword field of IPTC header in jpeg images. I tried it with 'writeIPTC' of 'JpegIptcRewriter' but I don't understand how to use it correctly. Google doesn't find anything about that subject and

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Damjan Jovanovic
On Wed, Mar 7, 2012 at 8:07 PM, Kasper Føns kfo...@gmail.com wrote: On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønskfo...@gmail.com  wrote: Hi Sanselan. I have a hard time finding out how to use Sanselan. Suppose I have some JPEG picture which I

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Damjan Jovanovic
On Wed, Mar 7, 2012 at 10:37 PM, Kasper Føns kfo...@gmail.com wrote: On 07-03-2012 19:41, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 8:07 PM, Kasper Fønskfo...@gmail.com  wrote: On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønskfo...@gmail.com

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 2:45 PM, Kasper Føns kfo...@gmail.com wrote: Sorry about the website, I plan on fixing it with the 1.0 release. UserComment is one of the uglier cases, as it uses that GPS string type with a special prefix to distinguish character encodings. Try using TagInfo.Text's

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 7:02 PM, Kasper Føns kfo...@gmail.com wrote: Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well? Hmm. You seem to be right that explorer likes the XP values. However, I can't figure out how to write to

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 6:39 PM, Kasper Føns kfo...@gmail.com wrote: I wouldn't count on Windows Explorer to give you the right values. Rather check it against exiftool (www.sno.phy.queensu.ca/~phil/exiftool/): exiftool -a -g1 -u image.tiff Windows Explorer also likes the XP values (eg.

Re: [sanselan] Ah, the special characters

2012-07-20 Thread Damjan Jovanovic
Hey The XP fields aren't UTF-8, they're UTF-16LE. Regards/Pozdrav Damjan On Fri, Jul 20, 2012 at 10:56 PM, Matej Jelovcan zuti...@gmail.com wrote: Hey guys. Damjan was already answering similar question, I thin (this is the mail archive I found:

Re: [Imaging] Will version 1.0 ever be released?

2012-09-17 Thread Damjan Jovanovic
Honestly: the incredibly complex and mostly undocumented process for doing a release. There are various incompatible bits in at least 4 different places: * http://commons.apache.org/releases/prepare.html - is meant to be the official Commons release documentation, but it's out of date and the PMC

Re: [Imaging] Will version 1.0 ever be released?

2012-09-17 Thread Damjan Jovanovic
,versionexpand But no guarantee on that - its just an unreleased snapshot. Cheers Cheers, MJ On 9/17/12, Damjan Jovanovic dam...@apache.org wrote: Honestly: the incredibly complex and mostly undocumented process for doing a release. There are various incompatible bits in at least 4

Re: [Imaging] Embedding Region of Interest(ROI)

2013-01-27 Thread Damjan Jovanovic
Does the EXIF SubjectArea/SubjectLocation tag do what you want? Damjan -- Forwarded message -- From: Mark Fortner phidia...@gmail.com Date: Sun, Jan 20, 2013 at 8:32 PM Subject: [Imaging] Embedding Region of Interest(ROI) To: Commons Users List user@commons.apache.org I have a

Re: [compress] create 7zip archive

2013-06-06 Thread Damjan Jovanovic
Hi I wrote the read support. Writing is tricky for several reasons: * We need lzma for archive header compression (good to hear XZ has it now Stefan!). It's optional but beneficial. * No [compress] API exists for setting the password to use when writing. * 7z supports solid compression in several

Re: [compress] create 7zip archive

2013-06-06 Thread Damjan Jovanovic
. I do not care of passwords or selection of compression algorithm. I am OK with RandomAccessFile. Ad spec - I downloaded lzma922.tar.bz2 - I consider it as latest. Or do you have newer file format description? Leoš __ Od: Damjan

Re: [compress] create 7zip archive

2013-06-07 Thread Damjan Jovanovic
The opposite method is COutArchive::WriteNumber() in file CPP/7zip/Archive/7z/7zOut.cpp in the LZMA SDK. Damjan On Thu, Jun 6, 2013 at 7:05 PM, Leos Literak liter...@centrum.cz wrote: Damjan, are you aware of opposite method to readUint64? I found a bug in our implementation and it is

Re: [compress] create 7zip archive

2013-06-10 Thread Damjan Jovanovic
On Thu, Jun 6, 2013 at 12:45 PM, liter...@centrum.cz wrote: Hello, I realized that trunk has support for reading 7z archive. That is great news. But I miss write 7z archive feature. Would you consider adding this feature? There is no java implementation at all. Leoš I've just committed

Re: [imaging] Create a multi page TIFF

2013-08-22 Thread Damjan Jovanovic
Hi Rafael Imaging isn't able to do write multi-page TIFFs right now. I was working on a patch to add that feature, but I need another week or so to finish it. Regards Damjan On Thu, Aug 22, 2013 at 8:29 PM, Rafael Ferreira de Lima Veloso (Mirante) rafael.v...@sicoob.com.br wrote: Hi,

Re: [imaging] save a image in cmyk

2013-09-11 Thread Damjan Jovanovic
Hi At the moment Imaging does not support saving to JPEG, and can only write TIFF in black and white, and RGB (see photometricInterpretation in the writeImage() method in org/apache/commons/imaging/formats/tiff/write/TiffImageWriterBase.java). I don't think a patch for CMYK would be hard to

Re: [imaging] Plan for 1.0.0 release

2013-10-21 Thread Damjan Jovanovic
Well as the only committer that's really working on the internals, I am wondering what to do myself now. I've been working on (and have almost finished) a very large change affecting virtually everything. When I commit it, the API will come apart at the seams :-/, and people will not be very

Re: [imaging] Plan for 1.0.0 release

2013-10-21 Thread Damjan Jovanovic
://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Mon, Oct 21, 2013 at 3:47 PM, Damjan Jovanovic dam...@apache.org wrote: Well as the only committer that's really working on the internals, I am wondering what to do myself now. I've

Re: [imaging] Plan for 1.0.0 release

2013-10-22 Thread Damjan Jovanovic
...@gmail.comwrote: On Mon, Oct 21, 2013 at 10:30 AM, Gary Gregory garydgreg...@gmail.com wrote: On Mon, Oct 21, 2013 at 9:47 AM, Damjan Jovanovic dam...@apache.org wrote: Well as the only committer that's really working on the internals, I am wondering what to do myself now. I've been working

Re: [imaging] Plan for 1.0.0 release

2013-10-22 Thread Damjan Jovanovic
should be converted to a proper enum type. Can anyone offer any reasons this should not be done, particularly before 1.0.0? Matt On Tue, Oct 22, 2013 at 1:44 PM, Damjan Jovanovic damjan@gmail.comwrote: Yes I agree, we might as well release trunk as 1.0.0. I am fixing the last few bugs

Re: [imaging] Plan for 1.0.0 release

2013-10-22 Thread Damjan Jovanovic
the extensible part should be an interface implemented by ImageFormat's constants. In this case we could convert ImageFormat to an enum now and still make the API extensible later on. Does this sound feasible? Matt On Tue, Oct 22, 2013 at 2:12 PM, Damjan Jovanovic dam...@apache.org wrote: I

Re: [compress] Random access of SevenZFile

2013-11-13 Thread Damjan Jovanovic
On Wed, Nov 13, 2013 at 3:18 PM, org.apache.comm...@io7m.com wrote: On Wed, 13 Nov 2013 06:05:06 +0100 Stefan Bodewig bode...@apache.org wrote: On 2013-11-12, org.apache.comm...@io7m.com wrote: The 7z file format is (supposedly) a random access format, much like zip archives. However,

Re: [imaging] Read/Write Bilevel TIFF A4 image thumbnail

2014-03-02 Thread Damjan Jovanovic
The EXIF specification provides a way to create a TIFF image with a thumbnail. Regards Damjan On Sun, Mar 2, 2014 at 9:13 AM, Ramanathan Srinivasan rsrinivasan...@gmail.com wrote: Greetings, Is it possible to embed Thumbnail in bilevel TIFF A4 image? If yes, any example or Link for the same