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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 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
|
|