Re: Issue 2 in pylibtiff: Setting Resolution tags in header seems broken

1 view
Skip to first unread message

pyli...@googlecode.com

unread,
Sep 13, 2010, 8:54:29 PM9/13/10
to pylibtif...@googlegroups.com

Comment #2 on issue 2 by Mu.Beta.06: Setting Resolution tags in header
seems broken
http://code.google.com/p/pylibtiff/issues/detail?id=2

Hi there,

I recently discovered when wrapping libtiff using ctypes that for the
TIFFSetField call for X and Y Resolution tags I had to cast the python
value as a c_double not a c_float

ctypes.c_double(xresolution)

ctypes.c_double(yresolution)

HTHs,

Cheers,

Matb

pyli...@googlecode.com

unread,
Sep 23, 2010, 7:57:45 AM9/23/10
to pylibtif...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 2 by pearu.peterson: Setting Resolution tags in header
seems broken
http://code.google.com/p/pylibtiff/issues/detail?id=2

This issue was closed by revision r55.

pyli...@googlecode.com

unread,
Sep 23, 2010, 8:01:48 AM9/23/10
to pylibtif...@googlegroups.com

Comment #4 on issue 2 by pearu.peterson: Setting Resolution tags in header
seems broken
http://code.google.com/p/pylibtiff/issues/detail?id=2

Thanks for the hint, Matb. I have applied the corresponding fix to SVN and
the given example works correctly now.

pyli...@googlecode.com

unread,
Sep 23, 2010, 8:05:50 AM9/23/10
to pylibtif...@googlegroups.com

Comment #5 on issue 2 by pearu.peterson: Setting Resolution tags in header
Reply all
Reply to author
Forward
0 new messages