sbs20 / scanserv

scanserv is a simple web-based UI for SANE which allows you to share a scanner on a network.
GNU General Public License v2.0
41 stars 13 forks source link

Cosmetics and small things #4

Closed cedr-x closed 7 years ago

cedr-x commented 7 years ago

Hello, Thanks for the project ! I've enhanced the preview cosmetics (less flickering) please review

cedr-x commented 7 years ago
cedr-x commented 7 years ago

Hello Sam, I've added the PreviewFilter to api.php, not on HandlePreviewRequest, but on HandlePreviewToJpegRequest instead. This way, trim and quality are settable in Config.php. To avoid the use of the dirty "/bin/cat", a test is made in Scanimage if the "outputfilter" is given or not

I've also inserted the jpg output preview within the json output in order to suppress the next http request to preview.jpg

Hope you'll like it ! Regards