Have you tried running it from a command line, and checking the output like Gabriel suggested? What the browser shows you as source, may not be exactly what is sent.
The pixels in the test template aren't even from TMPL_VAR tags, so they're not being changed by html-template at all. I tried running your test program with html-template 2.8 and had no problems. If you find it outputs correctly at the command line but not in the browser, then it's a browser problem. In future, when asking for help, it's helpful to give relevant details such as html-template version, browser type / version, code, etc. On 16/02/06, David Murchie <[EMAIL PROTECTED]> wrote: > > ALL TEST CODE BELOW -- To see what I'm talking about, try it with an img > width of 120 and then with an img width of 121 -- the entire <img> gets > dropped from the output with 120 (view source in browser): > > test.pl > ------------------------------------------------------------ > #!/usr/bin/perl -w > > use HTML::Template; > use strict; > > my $test_tmpl = "/your_template_directory/test.tmpl"; > my $template = HTML::Template->new(filename => $test_tmpl); > > print "Content-type: text/html\n\n"; > print $template->output; > > > test.tmpl > ------------------------------------------------------------ > > <html> > <img src="/images/image.jpg" height=90 width=120> > </html> > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Carl > Franks > Sent: Thursday, February 16, 2006 9:18 AM > To: html-template-users@lists.sourceforge.net > Subject: Re: [htmltmpl] Images with height/width of 90/120??? > > It'd be more helpful if you could include the code + template that you used. > > > On 16/02/06, David Murchie <[EMAIL PROTECTED]> wrote: > > > > > > I can't believe this is really happening but it appears that any img > > embedded in my html template that has dimensions of 120w x 90h is > "dropped" > > from the template by HTML::Template -- view the source and image tag > > is not included in the html > > > > Change either dimension by a pixel (e.g. 121w/90h) and the image > > appears -- can anyone replicate this? > > > > TIA > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Html-template-users mailing list > Html-template-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/html-template-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Html-template-users mailing list > Html-template-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/html-template-users > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users