- How Do I Print Photos?
- What is «Print to File» and can it be used from command line?
- Thread: Print to jpg instead of PDF
- Print to jpg instead of PDF
- Re: Print to jpg instead of PDF
- Re: Print to jpg instead of PDF
- Re: Print to jpg instead of PDF
- Re: Print to jpg instead of PDF
- Re: Print to jpg instead of PDF
- Re: Print to jpg instead of PDF
- Print to Image
How Do I Print Photos?
Any additional options like pre-processing for color correction or noise reduction would be nice to have but are not so essential.
According to this spec it seems not to so easy to accomplish the simple task of printing photos.
Indeed all applications I have gone through have major drawbacks that make printing photos almost impossible. Below I will list what put me off using them for photo printing:
- For obscure reasons CUPS only offers printing at 600 dpi the most.
- Gnome Photo Printer: no thumbnails, no grids, not available for 14.04
- Photoprint: does not keep settings, GUI broken, no standard photo size, no thumbs, not available for 14.04
- Eye Of Gnome: no multiple pages, no grids
- Gimp +Images Grid Layout: far too many steps to finally find that prints are always different to their previews.
- F-Spot: no grids
- Picasa 3 via Wine: no grids, very few fixed paper sizes, 300 dpi only
- flPhoto: strange GUI, no thumbs, no printer settings, did not print at all
- TurboPrint: proprietary paid software with a shameless high price and obscure paid-only update policy — but it does the job quite well (even includes reporting Inklevels from a network printer) for many Canon, Epson, Brother and HP printers. Alas, I am not willing to pay $40 for a basic feature I expect to just work.
- Windows: Ooops — everything works fine! But I want Ubuntu to do this!
After half a pack of ink cartridges and half a pack of photo paper cards I am getting tired of testing. At least Gimp and Picasa looked promising but both don’t keep their promise when it comes to printing. I’d already be happy to quickly print a few photos with EOG if bug #80220 was fixed — but it’s still on «wishlist».
What is «Print to File» and can it be used from command line?
When you select «Print to File» in a Gnome print dialog (not cups-pdf): . what is the actual command that gets executed? (I’m interested in the postscript variant, as on the image) On the other hand — maybe there isn’t a command call; maybe it is gtk_print_operation_set_export_filename from The new Gtk+ Printing API? In any case — is there a way for me to utilize this particular code from the command line (not pdf2ps and the like)? Say, by using lpr to «print to file» to a postscript file — as if I was using the dialog above?
AFAIK, this is a feature of the subsystem used by some GNOME and GTK+ applications to print stuff (some of these use Cairo). lpr interacts with cups directly, the print to file option completely bypasses the printing server. it probably doesn’t call a command, it just invokes the cairo renderering function in a different way so it generates pdf, postscript or svg output to a file.
Ah, so its the cairo backend there! Any ideas if a comparable command line is available, that can invoke this rendering function in the same way as the print dialog does? Many thanks for the comment, @njsg — cheers!
There may be some cairo command line tool (I really don’t know), but I guess it’s a bit tricky, as many applications use cairo to print their own documents, and that application is the one which is able to understand the file format. Cairo won’t be able to read random file formats. The closest you can get is to check if the program with the dialog has some commandline option to print a file without opening the GUI.
Thanks for explaining that @njsg — the above screenshot was taken from the evince print dialog; unfortunately, I cannot see any command line switches by evince that would do something like this.. Cheers!
It’s called GtkPrintUnixDialog . If you want to implement your own tool that launches that dialog here’s an example in pygobject . I’m posting this as a comment because as far as I know there is no command that does what you want (so there’s no answer to your question). The print dialog runs a GtkPrintJob (see documentation) which may use a cairo + postscript backend to get the surface and print the document.
Thread: Print to jpg instead of PDF
Dark Roasted Ubuntu
Print to jpg instead of PDF
When I choose to print something out, I currently have the option «print to PDF.» I’d like to make it so that I also have the option of «print to jpg.» Is this possible? I know that I can convert PDF to jpg, but I have to do this very often, so it would be much more convenient to print directly to jpg. This question has come up on the forum before, but no one offered an answer except for conversion. I currently use PDF->gimp->jpg. Is there are more efficient way?
Dipped in Ubuntu
Re: Print to jpg instead of PDF
There are extensions for that:
Not sure if there’s any Ubuntu software available to do that for every print-capable program.
Dark Roasted Ubuntu
Re: Print to jpg instead of PDF
Originally Posted by gerowen
There are extensions for that:
Not sure if there’s any Ubuntu software available to do that for every print-capable program.
Thanks. Unfortunately all of those extensions save as png and not jpg. My company is standardized on jpg. Also, I do have to do it in other programs as well, so it would be great if there was a way, but I’m not holding my breath for that.
Never mind, just noticed that I can do screenshot for jpg with the Google extension you gave.
Ubuntu Member
Re: Print to jpg instead of PDF
JPEG is quite bad for text documents and line art like graphs and diagrams. The problem is that at mid- and high-level compression it leaves bad compression artifacts. They can be quite distracting. PNG is really a better choice for ‘printed’ documents. Although PDF would be even better. It’s only when you get into pictures and photographs that PNG would have much advantage over PDF.
Ubuntu addict and loving it
Re: Print to jpg instead of PDF
+1
saving your docs in a lossy format doesn’t sound like a good idea and on top of that JPEG is one of the worst formats to store text you can think of. Its compression works nicely when there is a natural grain (like in photos), but in case of clean, sharp black shapes on flat white surface tons of clearly visible mosaic like distortions appear (the algorithm makes sharp edges create ripple effect).
if your question is answered, mark the thread as [SOLVED]. Thx.
To post code or command output, use [code] tags.
Check your bash script here // BashFAQ // BashPitfalls
Dark Roasted Ubuntu
Re: Print to jpg instead of PDF
Originally Posted by Vaphell
+1
saving your docs in a lossy format doesn’t sound like a good idea and on top of that JPEG is one of the worst formats to store text you can think of. Its compression works nicely when there is a natural grain (like in photos), but in case of clean, sharp black shapes on flat white surface tons of clearly visible mosaic like distortions appear (the algorithm makes sharp edges create ripple effect).
First Cup of Ubuntu
Re: Print to jpg instead of PDF
1. Install imagemagick if it is not already installed
2. Create a new folder on your desktop, name it pdf, and put the file you want to convert into pdf into this folder
3. Run Terminal (ctrl + Alt + T)
4. Type in the following command after the $ prompt
Print to Image
posted 11 years ago
I need a progrsm or API that I can us to print from any application to amge. For example, I mean an image virtual printer that I can use to print to image instead of print to real printer.
Any help please.
Thank you,
Saloon Keeper
posted 11 years ago
General printing to an image file isn’t something you want to do if you can avoid it. If the content is primarily text, the image file would usually be much, much larger than the text equivalent, would require special software to display it, wouldn’t support page breaks, and so forth.
When you do a «print to file» operation in Linux/Unix, the normal operation is that the printing code or application produces a PostScript (.ps) file. PostScript can contain images, but also provides a more efficient means of containing WYSIWYG text. In fact, PDF files are specialized extensions of PostScript. Typically if you have a bitmap image in a PDF, it will encode that image in TIFF form.
Although you can buy printers that print PostScript directly (one of the most famous of them was the Apple LaserWriter), Linux has the ability to convert from PostScript to any other Page Description Language, such as HP’s PCL. There is an app for that. It’s called GhostScript.
Among the output abilities of GhostScript are image files, so if you really want to print to a jpeg, bmp, gif, tiff, or whatever, there are drivers that will do that for you. See http://pages.cs.wisc.edu/~ghost/doc/AFPL/8.00/Devices.htm.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are «supposed» to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there’s being a willfully-blind idiot, which virtually guarantees it.