# config

name: header
value:
  <html>
  <head>
  <base href="$baseurl/$current_page" />
  <title>$<project_name>: $<title></title>
  <link rel="alternate" type="application/rss+xml" title="RSS Feed"
        href="$home/timeline.rss" />
  <link rel="stylesheet" href="$home/style.css?default" type="text/css"
        media="screen" />
  </head>
  <body>
  <div class="header">
    <div class="logo">
      <img src="$home/logo" alt="logo" />
    </div>
    <div class="title"><small>$<project_name></small><br />$<title></div>
    <div class="status"><th1>
       if {[info exists login]} {
         puts "Logged in as $login"
       } else {
         puts "Not logged in"
       }
    </th1></div>
  </div>
  <div class="mainmenu">
  <th1>
  html "<a href='/fossil/odie'>Odie</a>\n"
  html "<a href='$home$index_page'>Home</a>\n"
  if {[anycap jor]} {
    html "<a href='$home/timeline'>Timeline</a>\n"
  }
  if {[hascap oh]} {
    html "<a href='$home/dir?ci=tip'>Files</a>\n"
  }
  if {[hascap o]} {
    html "<a href='$home/brlist'>Branches</a>\n"
    html "<a href='$home/taglist'>Tags</a>\n"
  }
  if {[hascap r]} {
    html "<a href='$home/reportlist'>Tickets</a>\n"
  }
  if {[hascap j]} {
    html "<a href='$home/wiki'>Wiki</a>\n"
  }
  if {[hascap s]} {
    html "<a href='$home/setup'>Admin</a>\n"
  } elseif {[hascap a]} {
    html "<a href='$home/setup_ulist'>Users</a>\n"
  }
  if {[info exists login]} {
    html "<a href='$home/login'>Logout</a>\n"
  } else {
    html "<a href='$home/login'>Login</a>\n"
  }
  </th1></div>


name: adunit
value:
  <div style="width: 640px; margin: 12px auto;">
    <img style="float: left; width: 32px; height: 32px; padding-right:
  10px;"
  src="http://www.tcl.tk/community/tcl2014/images/tclca_logo2tinyC.gif">
    <a href="http://www.tcl.tk/community/tcl2014/">Tcl 2014 Conference,
  Portland/OR, US, Nov 10-14</a><br>
    Send your abstracts to <a
  href="mailto:tclconference@googlegroups.com">
  tclconference@googlegroups.com</a>
  by Sep 8.
  </div>


name: project-description
value:
  This project is a clone of the source forge project <a href="http://sourceforge.net/projects/tkimg/">http://sourceforge.net/projects/tkimg/</a>. It was ported to fossil to make it easier to distribute with <a href="/fossil/odie">ODIE</A>


# reportfmt

title: All Tickets
cols:
  #ffffff Key:
  #f2dcdc Active
  #e8e8e8 Review
  #cfe8bd Fixed
  #bde5d6 Tested
  #cacae5 Deferred
  #c8c8c8 Closed

sqlcode:
  SELECT
    CASE WHEN status IN ('Open','Verified') THEN '#f2dcdc'
         WHEN status='Review' THEN '#e8e8e8'
         WHEN status='Fixed' THEN '#cfe8bd'
         WHEN status='Tested' THEN '#bde5d6'
         WHEN status='Deferred' THEN '#cacae5'
         ELSE '#c8c8c8' END AS 'bgcolor',
    substr(tkt_uuid,1,10) AS '#',
    datetime(tkt_mtime) AS 'mtime',
    type,
    status,
    subsystem,
    title
  FROM ticket


# event

type: ci
user: nijtmans
comment:
  Fixed warnings suggested by David Binderman (see below)

  1. and 2. fixed as suggested.

  3. Here it turned out that the variable pixelPtr was not
     neccessary, so this variable is just eliminated.
     
  Thanks, David.

  ====================================================
  Hello there,

  I just tried to compile package tkimg-1.3-32 with the Intel C compiler.

  It said

  1.

  bmp.c(450): warning #175: subscript out of range
  bmp.c(451): warning #175: subscript out of range

  The source code is

                  x += rleBuf[2];
                  y += rleBuf[3];

  but, earlier in the same file,

          unsigned char rleBuf[2];

  Suggest make rleBuf bigger.

  2.

  ps.c(174): warning #175: subscript out of range

  The source code is

              buf[41] = 0;

  but, 15 lines earlier in the file

      unsigned char buf[41];

  Suggest make buf bigger.

  3.

  tiff.c(564): warning #592: variable "bl" is used before its value is set

  The source code is

      myblock bl;
      unsigned char *pixelPtr = block.pixelPtr;

  but

  #define block bl.ck

  Suggest initialise local variable "bl" before first use.


  Regards

  David Binderman


type: ci
user: obermeier
comment:
  1. Added read parser for 16 and 32 bit formats. Needed when reading images from the Windows clipboard. (See http://wiki.tcl.tk/15647 for example)
  2. Corrected previous rleBuf fix.


type: ci
user: nijtmans
comment:
  It appeared that many more images where corrupted during the cvs2svn
  conversion because they were ill-tagged in the original CVS repository.
  Fixed all of them (I hope) as follow-up of r79


type: ci
user: nijtmans
comment:
  Make tkimg work again with Tcl/Tk 8.1.x and 8.2.x (obviously it
  was not tested against those Tcl/Tk version for a long time).

  Also fix a lot of gcc 3.4 and gcc 4.1 compiler warnings.

  In functionality, nothing is changed.


type: ci
user: andreas_kupries
comment:
  Applied the patches from SF Patch [ 1810681 ] Mac OS X universal building, adobe deflate in tiff, TEA 3.6.


type: ci
user: nijtmans
comment:
  Updated genStubs.tcl to match with the version in Tcl8.5.1; re-generated all related files (*Decls.h and *StubInit.c)


type: ci
user: nijtmans
comment:
  - CONST -> const in *.decls, genenerate all header files
  - white spacing fixes.
  - eliminate genStubs.tcl in other places than the main "tools"


type: ci
user: nijtmans
comment:
  configure now finds the tclConfig.sh and tkConfig.sh
  files from a parallel Tcl and Tk ming32 build. With
  this change, tkimg now builds uit-of-the-box on mingw32.
  Issue #762108


type: ci
user: obermeier
comment:
  Fixed issue #1963052:
  Added correct base64 encoded image for format ICO.
  Added correct base64 encoded image for format SGI. Also added code to fill unused bytes of file header with zeros to get identical test results.
  Removed test for format pixmap.


type: ci
user: obermeier
comment:
  Added two new format handlers: DTED for displaying terrain elevation data files as an image. RAW for displaying files filled with raw matrix data in 8-bit intger, 16-bit integer or 32-bit float binary data.
  Note: These very special format handlers are not loaded with a "package require Img", but must be loaded explicitly with "package require img::dted" and "package require img::raw".


type: ci
user: obermeier
comment:
  Updated demo program to include all available image formats. Also added additional tests for all image formats.


type: ci
user: obermeier
comment:
  Added new (visual) test suite for checking the different ways of reading and writing images in the various formats. 


type: ci
user: andreas_kupries
comment:
  Fix math_libs issue for AIX. NOTE: configure files were not regenerated. Autoconf here appaears to be too old (2.59 vs 2.63), leading to trouble on OSX regarding endian-handling for universal.


type: ci
user: obermeier
comment:
  Additional checks on icon size when reading to avoid core dumps with defect icon files. 
  (Bug 2477446 in Tk Toolkit) 


type: ci
user: nijtmans
comment:
  Modified bmp and ico, no longer panicing when an out-of-memory
  error occurs (Tk bug #2477446). This only works when tkImg is
  compiled against Tcl/Tk 8.5 and later, and running with Tcl/Tk
  8.5 and later. If not, tkImg will fall back to the previous
  behavior, just panicing in this case.

  Still to do: all other format handlers. BMP
  and ICO can be used as example how to do that.


type: ci
user: nijtmans
comment:
  Modified dted and raw, no longer panicing when an out-of-memory
  error occurs (Tk bug #2477446). This only works when tkImg is
  compiled against Tcl/Tk 8.5 and later, and running with Tcl/Tk
  8.5 and later. If not, tkImg will fall back to the previous
  behavior, just panicing in this case.


type: ci
user: nijtmans
comment:
  Modified gif, jpeg, pcx, png, ppm, and ps, no longer panicing when an out-of-memory
  error occurs (Tk bug #2477446). This only works when tkImg is
  compiled against Tcl/Tk 8.5 and later, and running with Tcl/Tk
  8.5 and later. If not, tkImg will fall back to the previous
  behavior, just panicing in this case.


type: ci
user: nijtmans
comment:
  Modified sgi, sun, tga, tiff, window, xbm and xpm, no longer panicing when an out-of-memory
  error occurs (Tk bug #2477446). This only works when tkImg is
  compiled against Tcl/Tk 8.5 and later, and running with Tcl/Tk
  8.5 and later. If not, tkImg will fall back to the previous
  behavior, just panicing in this case.


type: ci
user: nijtmans
comment:
  add --with-tk, --with-tclinclude, --with-tkinclude and --with-x to all configure.in
  files, and regenerate all configure scripts
  Issue #2514136


type: ci
user: nijtmans
comment:
  - typo in README
  - Adapt all Makefile.in files for autoconf-2.63 without warnings (@datarootdir@)
  - Only configure for internal Tcl/Tk header files, when the module really needs it.


type: ci
user: nijtmans
comment:
  - don't wrap Tk_ImageBlock in another structure any more: this
    was only needed for Tk 8.0.2 and earlier.
  - be more consistant with using either #include <...> or
    #include "...", and don't include unnecessary headers.


type: ci
user: nijtmans
comment:
  Move ./libz to ./compat/zlib and ./libz/tcl to ./zlib
  Require Tcl/Tk 8.3 for libz, libpng, libtiff and libjpeg


type: ci
user: nijtmans
comment:
  Move ./libjpeg to ./compat/libjpeg
  Move ./libpng to ./compat/libpng
  Move ./libtiff to ./compat/libtiff


type: ci
user: nijtmans
comment:
  various fixes to tcl.m4 (Stuart Cassoff)
  (To be checked in in sampleextension as well.)
  Issue #2669308


type: ci
user: nijtmans
comment:
  - Add svn:ignore to a lot of directories
  - pixmap: Allow X11 headers to be non-system ones
  - ps: fix minor gcc warning


type: ci
user: obermeier
comment:
  Major rewrite of PPM format parser:
  Now supports reading and writing of 8-bit RAW and ASCII formats.
  Supports reading of 16-bit PPM files with gamma correction.
  Updated test cases and documentation.


type: ci
user: nijtmans
comment:
  remove dist directory from libtiff/libtiff, which still belonged to libtiff 3.6.1 and is not used any more


type: ci
user: obermeier
comment:
  Fixed bug in 4-bit RLE parser, which caused Tcl/Tk to crash.
  Now the BmpSuite (http://entropymine.com/jason/bmpsuite/) runs without valgrind errors.


type: ci
user: nijtmans
comment:
  Sync with latest TEA (tcl.m4), regenerated all
  configure scripts with autoconf-2.65.
  Sync genStubs.tcl with latest one from Tcl 8.6,
  regenerated all *Decls.h files. All stubs
  pointers are const now.


type: ci
user: nijtmans
comment:
  Kill the Tk 8.2/8.3 ifdeffery - at
  least the runtime swizzle (I don't consider
  this a bug at all, because it worked fine
  as long as it was needed!)
  Issue #2975449


type: ci
user: nijtmans
comment:
  Eliminate forced dependancy for aqua on
  ::tk::unsupported::MacWindowStyle
  Eliminate msgcat compatibility layer


type: ci
user: nijtmans
comment:
  Make all of Tk's stub table entries available to tkImg, no matter what Tk version we are compiling against.


type: ci
user: nijtmans
comment:
  The problem fixed by it was that the toplevel Makefile was not in sync with the Makefiles for the sub-packages. The per-package Makefile don't install a pkgIndex.tcl file when building static, and the 'collate' target of the toplevel Makefile was not taking this into account.

  The patch adds the same check as done in the per-package Makefiles to the toplevel Makefile as well.


type: ci
user: nijtmans
comment:
  Use PNGTCLAPI in stead of EXTERN in tkImg png package
  xbm fix unused variable
  Fix building tkimg --disable-shared


type: ci
user: nijtmans
comment:
  [ tkimg-Bugs-3011001 ] Only support accessing tkImg procs through stub table
  implemented for base
  Issue #3011001


type: ci
user: nijtmans
comment:
  Eliminate use of USE_TKIMG_STUBS, no longer necessary
  Define MODULE_SCOPE if not already done
  Issue #3011001


type: ci
user: nijtmans
comment:
  [tkimg-Bugs-3011001] Only support accessing tkImg
  procs through stub table implemented for zlib
  Issue #3011001


type: ci
user: nijtmans
comment:
  Use XXX_VERSION macros in stead of hardcoding version number.
  Eliminate some TCL_STORAGE_CLASS usages
  fix sgi tests


type: ci
user: nijtmans
comment:
  Fix build problem on windows:

  error C2375: 'Tkimgpixmap_Init' : redefinition; different linkage
         ../../../src/pixmap/pixmapInt.h(145) : see declaration of 'Tkimgpixmap_Init'


type: ci
user: obermeier
comment:
  Added new option "-uuencode" to be able to read RAW image data without header from a Tcl variabe.
  Fix for Bug-ID 3054366.


type: ci
user: obermeier
comment:
  Due to anti-aliased text introduced in Tk8.5, the GIF tests failed with "too many colors".
  Corrected by explicitly selecting a Courier font.
  Some minor beautifications (replace "==" with "eq").


type: ci
user: obermeier
comment:
  Fix for bug 3080944: Writing images with greenOffset and blueOffset equal zero (i.e. real gray-scale images) produced only white image. Removed if statement to count number of colors, when in gray-scale mode, too.


type: ci
user: obermeier
comment:
  Read canvas only once to increase test speed.
  (Image format "window" is slow with Windows Aero enabled)


type: ci
user: obermeier
comment:
  Added using a fast mode, if reading complete 3-channel byte (RGB) images and specifying the "-nomap" option. The fast mode improved read speed by factor 3 on Windows.


type: ci
user: obermeier
comment:
  Added read option "-matte" to toggle reading the alpha/matte channel. 
  When reading large images with alpha channel TkPhotoPutBlock just takes forever.


type: ci
user: nijtmans
comment:
  remove png_zalloc and png_zfree: later libpng versions don't have it any more
  remove unused variable


type: ci
user: obermeier
comment:
  Bugfix/Enhancement: Added support for reading 8-bit grey images. Trying to read an image of that kind caused Img to crash.


type: ci
user: obermeier
comment:
  Corrected parsing of format options: Print error message, if an unknown option has been specified, instead of producing a core dump.


type: ci
user: obermeier
comment:
  #define PACKAGE_VERSION not needed in source file. Package version already contained in configure.in.


type: ci
user: obermeier
comment:
  configure scripts did not produce valid version numbers for Img and base modules. Regenerated all configure scripts with autoconf 2.65.


type: ci
user: nijtmans
comment:
  Workaround for MinGW bug #2065: "gcc --shared" links with libgcc_s_dw2-1.dll when using 64-bit division in C. (TODO: regenerate all configure scripts)


