canon-selphy-print
canon-selphy-print copied to clipboard
image geometry incorrect for CP1300
Hi,
- extremely awesome scripts!
- for my CP1300 everything seems to work but the image geometry is incorrect. I.e. if I just use the script as is, I get a white border around my pictures. If I use them with --border, I get an even wider white border.
Suppose I'll start trying out different values for the geometry calls in imagemagick there ..
Hi @mhellwig Like mentioned in comment https://github.com/abelits/canon-selphy-print/issues/4#issuecomment-383292905, there are already forks of this script. It suggested to use them. I myself have the same issue on a CP1300 and played around to fix it. I thought once I had it working correctly, but then on the next printout again I had white borders :( I will have to look into it again, or maybe you are more successful.
In the long term I wish the gutenprint support could be fixed (CUPS finds and knows the printer, but printing fails as the printer reports invalid format). I started digging into it but again had no success yet.
@caco3 Thank you (and also the original author) for the script.
I've started using your version of the script with a new CP1300 and has exactly the same problem. (It has a border, even if the --border
is not set.
I've tried to change two things:
- page_shift="+46+34"
+ page_shift="+0+0"
img_extent="1760x1190"
| ( $round && composite "${bordermaskfile}" png:- png:- || cat ) \
| convert -page "$page_shift" -background white -flatten \
- -extent "$final_extent" png:- -quality $final_quality jpg:- \
+ -extent "$img_extent" png:- -quality $final_quality jpg:- \
> ${tmpdir}/printFile
fi
This shows no border in the preview, but there is a small white line at the bottom of the picture.
I can play with the script, but you probably have at least some more knowledge about the printer's options. (And I do not want to print photos just for a test.)
I have some questions:
- Does the printer have some static dpi when you print in the
-o raw
mode? If yes, making the image a little bigger can be a solution. - When I print directly from the printer, it prints also some pixels cross the cutting line. (Is there some way to achieve this -> I can lose some pixels but would like to have bordeless print.
- I cannot list the printer's options on my system, but is there some option to allow printing dates (the shade version) to the picture. (It is really useful.)
- Maybe out-topic -- What can I do to make it work from other apps. (Using from the print menu like other printers.) I am using Fedora 29+Gnome, but can only see the printer, but it does not allow me to print. e.g. Where I can create an issue for this... Where is a better place to ask..
Thanks in advance!
@lachmanfrantisek Sorry to have to disappoint you. Unlike the original author, I never got it working without a border (except a single time which I can not reproduce). So after many many photos I gave up and am now using my android phone to print the images. Its not very handy, but at least it works.
Now, to your questions:
- I am not sure about the needed resolution. I played around with several variants,but I believe independent of what i use, the printer will always scale it down so everything (plus a border) will fit.
- According to the original author, there is printer support in the latest Gutenberg driver, how ever I was unable to compile it myself. The printer can be found by CUPS, but whatever I tried, the printer always said that the image format is unsupported.
- I searched the web but did not find other up-to-date discussions. Maybe you could address the Gutenberg project directly?
@caco3 Thanks for your answers, I'll let you know if I make some progress. (For me, printing from the SD card is also a solution since I do not print so many photos.) Thanks!
I don't know if you are still interested in this problem since it has been two years, but for anyone like me who was googling around for this PITA issue:
- Go to /etc/cups/ppd
-
sudo cp Canon-Selphy-CP1300.ppd old_cp1300.ppd_old
(or whatever the filename is) - Open it with your favourite text editor (with admin privs)
- Find the section in the file where borderless is stated - change it to true by default, 2 line edits I think
- Print edge to edge 👍
@Twistedsnail thanks for the advice, I need to try that!
I don't know if you are still interested in this problem since it has been two years, but for anyone like me who was googling around for this PITA issue:
- Go to /etc/cups/ppd
sudo cp Canon-Selphy-CP1300.ppd old_cp1300.ppd_old
(or whatever the filename is)- Open it with your favourite text editor (with admin privs)
- Find the section in the file where borderless is stated - change it to true by default, 2 line edits I think
- Print edge to edge 👍
I've been banging my head against the wall with this printer. Thanks for this tip, I'll need to check this out.
@Twistedsnail Are you referring to these lines?
*OpenUI *StpBorderless/Borderless: PickOne *OrderDependency: 10 AnySetup *StpBorderless *OPOptionHints StpBorderless: "checkbox" *StpStpBorderless: 2 1 0 0 255 0.000 0.000 0.000 *DefaultStpBorderless: True *StpDefaultStpBorderless: False *StpBorderless False/No: "" *StpBorderless True/Yes: "" *CloseUI: *StpBorderless
@Twistedsnail Are you referring to these lines?
*OpenUI *StpBorderless/Borderless: PickOne *OrderDependency: 10 AnySetup *StpBorderless *OPOptionHints StpBorderless: "checkbox" *StpStpBorderless: 2 1 0 0 255 0.000 0.000 0.000 *DefaultStpBorderless: True *StpDefaultStpBorderless: False *StpBorderless False/No: "" *StpBorderless True/Yes: "" *CloseUI: *StpBorderless
Unfortunately I no longer have this printer or the ppd
file to confirm. But if those are the only mentions of borderless then that must be it. Maybe try changing it to:
*DefaultStpBorderless: True
*StpDefaultStpBorderless: True
@Twistedsnail Thanks, but changing that to true doesn't print borderless.... I'm giving up on this...
@Twistedsnail Thanks, but changing that to true doesn't print borderless.... I'm giving up on this...
Understandable :) Apologies for not documenting my solution better! If you want to give a last-ditch attempt, maybe check any listed paper dimensions in that file and compare to the physical print?
Whatever it is worth: The driver I'm using is Canon SELPHY CP1300 - CUPS+Gutenprint v5.3.4 (color) In the "Printer Features Common" the borderless printing is set to "yes" In General the paper size is set to Postcard 100x148mm
I have manually set those values to "True" in the ppd file.
The printed area is 94mm x 140mm (measured with a ruler as best as I could). Somewhere 6mm in width and 8mm in height go missing are set / are added
In the ppd file I find these: *PageSize Postcard/Postcard 100x148mm: "<</PageSize[299.520 449.280]/ImagingBBox null>>setpagedevice"
I have no idea how these 299.950 and 449.280 are calculated