Tk Library Source Code

View Ticket
Login
Ticket UUID: 2801587
Title: ::jpeg::getThumbnail help example code
Type: Bug Version: None
Submitter: didierprovost Created on: 2009-06-05 07:36:07
Subsystem: jpeg Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-06 02:38:22
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2009-06-05 19:38:22
Description:
In ::jpeg::getThumbnail  help :
If you open the file as given in the example : 
     set fh [open thumbnail.jpg w+]
You get a corrupted thumbnail. In order to get a valid one, open it in binary mode :
     set fh [open thumbnail.jpg wb+]
User Comments: andreas_kupries added on 2009-06-06 02:38:22:

allow_comments - 1

Fixed in the CVS head now. Although I used 'fconfigure' to make it more explicit that this requires binary settings.

Regarding 'A Category Is Missing', the category 'jpeg' is quite present.