Thread: [htmltmpl] Images with height/width of 90/120???
Brought to you by:
samtregar
From: David M. <dmu...@sn...> - 2006-02-16 14:14:17
|
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 |
From: Carl F. <fir...@gm...> - 2006-02-16 14:18:09
|
It'd be more helpful if you could include the code + template that you used= . On 16/02/06, David Murchie <dmu...@sn...> 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 "droppe= d" > from the template by HTML::Template -- view the source and image tag is n= ot > included in the html > > Change either dimension by a pixel (e.g. 121w/90h) and the image appears = -- > can anyone replicate this? > > TIA |
From: David M. <dmu...@sn...> - 2006-02-16 14:38:39
|
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): =20 test.pl ------------------------------------------------------------ #!/usr/bin/perl -w use HTML::Template; use strict; my $test_tmpl =3D "/your_template_directory/test.tmpl"; my $template =3D HTML::Template->new(filename =3D> $test_tmpl); print "Content-type: text/html\n\n"; print $template->output; test.tmpl ------------------------------------------------------------ <html> <img src=3D"/images/image.jpg" height=3D90 width=3D120> </html> -----Original Message----- From: htm...@li... [mailto:htm...@li...] On Behalf Of = Carl Franks Sent: Thursday, February 16, 2006 9:18 AM To: htm...@li... 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 <dmu...@sn...> wrote: > > > I can't believe this is really happening but it appears that any img=20 > 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=20 > is not included in the html > > Change either dimension by a pixel (e.g. 121w/90h) and the image=20 > 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=3Dk&kid=103432&bid#0486&dat=121642 _______________________________________________ Html-template-users mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/html-template-users |
From: Jason P. <ja...@jo...> - 2006-02-16 14:50:23
|
I'm not seeing it: > $ perl ./test.pl > Content-type: text/html > > <html> > <img src="/images/image.jpg" height=90 width=120> > </html> My guess is that your browser is cleaning up after you? Try putting quote marks around the numbers. - Jason |
From: David M. <dmu...@sn...> - 2006-02-16 15:02:04
|
I never thought of trying it from the command line (duh!) but it does work!!! I'm now off to the Symantec web site to find out why Norton Internet Security would filter out all images with those dimension (probably because it is a common advertisement dimension???) Never mind... and thanks! -----Original Message----- From: Jason Purdy [mailto:ja...@jo...] Sent: Thursday, February 16, 2006 9:50 AM To: David Murchie Cc: htm...@li... Subject: Re: [htmltmpl] Images with height/width of 90/120??? I'm not seeing it: > $ perl ./test.pl > Content-type: text/html > > <html> > <img src="/images/image.jpg" height=90 width=120> </html> My guess is that your browser is cleaning up after you? Try putting quote marks around the numbers. - Jason |
From: David M. <dmu...@sn...> - 2006-02-16 15:09:08
|
Off topic, but with the assumption that this list reaches many Web page designers... apparently Norton Internet Security's "Ad Blocking" indiscriminately filters out images with the following dimensions: {300, 250}, {250, 250}, {240, 400}, {336, 280}, {180, 150}, {468, 60}, {234, 60}, {88, 31}, {120, 90}, {120, 60}, {120, 240}, {125, 125}, {728, 90}, {160, 600}, {120, 600}, {300, 600} -----Original Message----- From: Jason Purdy [mailto:ja...@jo...] Sent: Thursday, February 16, 2006 9:50 AM To: David Murchie Cc: htm...@li... Subject: Re: [htmltmpl] Images with height/width of 90/120??? I'm not seeing it: > $ perl ./test.pl > Content-type: text/html > > <html> > <img src="/images/image.jpg" height=90 width=120> </html> My guess is that your browser is cleaning up after you? Try putting quote marks around the numbers. - Jason |
From: Carl F. <fir...@gm...> - 2006-02-16 14:58:58
|
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 problem= s. 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 <dmu...@sn...> 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 =3D "/your_template_directory/test.tmpl"; > my $template =3D HTML::Template->new(filename =3D> $test_tmpl); > > print "Content-type: text/html\n\n"; > print $template->output; > > > test.tmpl > ------------------------------------------------------------ > > <html> > <img src=3D"/images/image.jpg" height=3D90 width=3D120> > </html> > > > -----Original Message----- > From: htm...@li... > [mailto:htm...@li...] On Behalf Of Car= l > Franks > Sent: Thursday, February 16, 2006 9:18 AM > To: htm...@li... > Subject: Re: [htmltmpl] Images with height/width of 90/120??? > > It'd be more helpful if you could include the code + template that you us= ed. > > > On 16/02/06, David Murchie <dmu...@sn...> 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 fi= les > 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=3Dk&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > 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&kid=103432&bid#0486&dat=121642 > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users > |