由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - HTML print an image
相关主题
python弱问题也问个regular expression的问题
这个 perl 输出的数字为什么自动加了换行?谢谢!又一个GDB的问题:关于显示数据
请教一个android apps显示的问题问个BT问题 :)(c )
用Java写一个简单的browser请 教 : 关 于 writing to a file 用 Perl for CGI
shrink png image, size居然变大了,咋回事?再 次 请 教 : 关 于 writing to a file 用 Perl for CGI
perl question关于gdb的问题, 谢谢
Fortran question: FORMAT(3HXY=3I)一个perl bug,求救,谢谢!
Fortran question in PLC?compare double to float
相关话题的讨论汇总
话题: image话题: print话题: html话题: since话题: jpeg
进入Programming版参与讨论
1 (共1页)
F**p
发帖数: 1046
1
I want to print an image inside a HTML. Since the image could be very large, I
want to add one button on the page and click it to export to a printer and
automatically have a nice layout. Now, i can print 1/4 of the whole image
since it is too big to hold in a 8*11 paper.
I know Windows Fax/Picture Viewer has this nice function, how can I do this
within a webpage without saving/opening/printing it ??
Thanks for your reading and help !!
c**t
发帖数: 2744
2
piece of js could do the job.

big
on

【在 F**p 的大作中提到】
: I want to print an image inside a HTML. Since the image could be very large, I
: want to add one button on the page and click it to export to a printer and
: automatically have a nice layout. Now, i can print 1/4 of the whole image
: since it is too big to hold in a 8*11 paper.
: I know Windows Fax/Picture Viewer has this nice function, how can I do this
: within a webpage without saving/opening/printing it ??
: Thanks for your reading and help !!

F**p
发帖数: 1046
3
it looks that is a solution. The problem we met is not very common: we use
some dll to generate an image which has X*Y pixels dimension. Since it only
generate JPEG image with certain quality by X*Y pixel, we have to increase the
width and height so as to have a large, say 2X*2Y sized image, then print it
out to get a better quality. I am not sure if I scaled down the image, if I
lose the quality when printing it out....
thanks Xentar !

image
X****r
发帖数: 3557
4
Why can't you create a new browser window which contains the scaled-down image
when the user clicks your button and print the content of that new window?

I

【在 F**p 的大作中提到】
: I want to print an image inside a HTML. Since the image could be very large, I
: want to add one button on the page and click it to export to a printer and
: automatically have a nice layout. Now, i can print 1/4 of the whole image
: since it is too big to hold in a 8*11 paper.
: I know Windows Fax/Picture Viewer has this nice function, how can I do this
: within a webpage without saving/opening/printing it ??
: Thanks for your reading and help !!

F**p
发帖数: 1046
5
it looks that is a solution. The problem we met is not very common: we use
some dll to generate an image which has X*Y pixels dimension. Since it only
generate JPEG image with certain quality by X*Y pixel, we have to increase the
width and height so as to have a large, say 2X*2Y sized image, then print it
out to get a better quality. I am not sure if I scaled down the image, if I
lose the quality when printing it out....
thanks Xentar !

image

【在 X****r 的大作中提到】
: Why can't you create a new browser window which contains the scaled-down image
: when the user clicks your button and print the content of that new window?
:
: I

c**t
发帖数: 2744
6
just like flickr does.

【在 c**t 的大作中提到】
: piece of js could do the job.
:
: big
: on

c**t
发帖数: 2744
7
IE has a feature: move mouse over the picture, it will pop out "print",
"email" buttons. I guess you have to wait till its completion. Or you m
ay print screen to print 1/4 or what ever percentage image.

I

【在 F**p 的大作中提到】
: I want to print an image inside a HTML. Since the image could be very large, I
: want to add one button on the page and click it to export to a printer and
: automatically have a nice layout. Now, i can print 1/4 of the whole image
: since it is too big to hold in a 8*11 paper.
: I know Windows Fax/Picture Viewer has this nice function, how can I do this
: within a webpage without saving/opening/printing it ??
: Thanks for your reading and help !!

s****i
发帖数: 2993
8
the best method is dynamically creating PDF rather than JPEG.
you guarantee to get same result across browsers and platforms.
or you could try using CSS, specify media as print, and sends
different versions of JPEG, one for view, one for print. but
I haven't tested whether the print version is printed at 300
dpi or about 72. I think you can specify resolution, but no
idea the support of browsers.

the
it

【在 F**p 的大作中提到】
: it looks that is a solution. The problem we met is not very common: we use
: some dll to generate an image which has X*Y pixels dimension. Since it only
: generate JPEG image with certain quality by X*Y pixel, we have to increase the
: width and height so as to have a large, say 2X*2Y sized image, then print it
: out to get a better quality. I am not sure if I scaled down the image, if I
: lose the quality when printing it out....
: thanks Xentar !
:
: image

1 (共1页)
进入Programming版参与讨论
相关主题
compare double to floatshrink png image, size居然变大了,咋回事?
多继承和虚继承的面试问题 (转载)perl question
[合集] 如何只用putchar来实现itoa?Fortran question: FORMAT(3HXY=3I)
[合集] (c++)为什么不能把这个function的definition放到class里Fortran question in PLC?
python弱问题也问个regular expression的问题
这个 perl 输出的数字为什么自动加了换行?谢谢!又一个GDB的问题:关于显示数据
请教一个android apps显示的问题问个BT问题 :)(c )
用Java写一个简单的browser请 教 : 关 于 writing to a file 用 Perl for CGI
相关话题的讨论汇总
话题: image话题: print话题: html话题: since话题: jpeg