Re: [PHP] Re: Printing JPEG
If you are on a linux box with lpr [1] running you could try a shell_exec() in combination with imagemagick [1] http://tldp.org/HOWTO/Printing-Usage-HOWTO-2.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Printing JPEG
Greetings, "Kyle Terry". In reply to Your message dated Thursday, October 23, 2008, 15:32:07, > I'm stuck... What is the best way to send a jpg to a printer with PHP? Looks > like it is only working with png and bmp... Example? -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Printing JPEG images generated with ImageJPEG with IE/WIN
>>Hm, it could be that IE tries to reload the picture (which isn't there >>anymore because the form-data has been expired). Perhaps saving the >>picture temporarly on the server will prevent the problem. >> > >That could be what is happening. I'm generating data for students to >analyze on one page with the hidden form and generating a graph of >the data with the next page. The only thing generated is the image. >If I date/time stamp the image file I could serve that up on the >next page...it would be good to get the right graph to the right >student. Might be worth a try. To answer my own post. That works, i.e. creating a jpeg file and then accessing in the next php page. I end up with extra image files created for each student/access but a cron entry should get rid of them...and they aren't all that big. Extra flexibility with a html page instead of just the image. Haven't tested it with Win IE yet though...leave that for Monday David -- David Bourne OUHSC College of Pharmacy [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Printing JPEG images generated with ImageJPEG with IE/WIN
>To: [EMAIL PROTECTED] >Message-ID: <[EMAIL PROTECTED]> >Date: Fri, 25 Jan 2002 16:20:57 +0100 >From: Martin Thoma <[EMAIL PROTECTED]> >MIME-Version: 1.0 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit >Subject: Re: Printing JPEG images generated with ImageJPEG with IE/WIN > >Hm, it could be that IE tries to reload the picture (which isn't there >anymore because the form-data has been expired). Perhaps saving the >picture temporarly on the server will prevent the problem. > That could be what is happening. I'm generating data for students to analyze on one page with the hidden form and generating a graph of the data with the next page. The only thing generated is the image. If I date/time stamp the image file I could serve that up on the next page...it would be good to get the right graph to the right student. Might be worth a try. Curious that it works with Mac IE and Win Netscape but not Win IE. David -- David Bourne OUHSC College of Pharmacy [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Printing JPEG images generated with ImageJPEG with IE/WIN
Hm, it could be that IE tries to reload the picture (which isn't there anymore because the form-data has been expired). Perhaps saving the picture temporarly on the server will prevent the problem. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]