Bug 188426 - Add support for different size printwizard templates
Summary: Add support for different size printwizard templates
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-PrintCreator (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-29 21:42 UTC by HectorG
Modified: 2017-07-11 13:42 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description HectorG 2009-03-29 21:42:35 UTC
Version:           0.10.0 (using KDE 4.2.2)
OS:                Linux
Installed from:    Gentoo Packages

I would like the ability to be able to either create my own templates or select the size of the pictures i want to print. For instance to make a sheet of wallet size pictures. I often do this and there is no way to do it currently from digikam printwizard plugin.
Comment 1 Anthony Messina 2009-04-09 18:21:48 UTC
I would also like the ability to print wallet sized photos on a US Letter sheet.  Currently, the closest thing I can get is to choose A4 as the paper size and use 6cm x 9cm (which is slightly different than a "wallet" size.

Please add "Wallet Sheet" or something like that to the US Letter page options.
Comment 2 Angelo Naselli 2009-04-11 17:00:06 UTC
my idea is to add a user interface that allow custom page layout. I can't work at it at the moment because in finishing something on print images. It's in my todo list and i'll start coding as soon as possible.
Anyway Anthony (comment #1) if you can add here wallet layout on US letter page
(inches are ok) I could add it statically quicker than user layout...
Comment 3 Anthony Messina 2009-04-13 21:12:09 UTC
(In reply to comment #2)
> my idea is to add a user interface that allow custom page layout. I can't work
> at it at the moment because in finishing something on print images. It's in my
> todo list and i'll start coding as soon as possible.
> Anyway Anthony (comment #1) if you can add here wallet layout on US letter page
> (inches are ok) I could add it statically quicker than user layout...

Ok, the standard US Letter page is 8.5" x 11".  The standard "Wallet" photo (to make best use of the page) is 2-1/3" x 3-1/3". (All units given are in inches).

The layout would be 3 "Wallets" wide x 3 "Wallets" tall.  Ideally, the "Wallets" should be laid out in such a way that when a person cuts them out from an 8.5" x11" piece of paper, they only need to make one cut between photos, so the photos are place immediately next to each other horizontally and vertically, with the whole block of Wallets centered on the page (to account for any printer margins).

It is also often desirable to have 1-2px of line, crop mark, or margin between each adjacent photo so the cutter can easily distinguish between photos when the backgrounds are similar.
Comment 4 Nicolas L. 2009-06-29 22:46:18 UTC
here is the patch for what angelo asked

Index: printimages/wizard.cpp
===================================================================
--- printimages/wizard.cpp      (révision 988099)
+++ printimages/wizard.cpp      (copie de travail)
@@ -358,6 +358,29 @@
         // add to the list
         d->m_photoSizes.append ( p );

+        // ========== 2-1/3" x 3-1/3"
+        p = new TPhotoSize;
+        p->label = i18n ( "2-1/3\" x 3-1/3\" " );
+        p->dpi = 0;
+        p->autoRotate = true;
+        // page size
+        p->layouts.append ( new QRect ( 0, 0, 8500, 11000 ) );
+        // photo layouts
+        p->layouts.append ( new QRect ( 333,  333, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 2999, 333, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 5665, 333, 2333, 3333 ) );
+
+        p->layouts.append ( new QRect ( 333,  3999, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 2999, 3999, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 5665, 3999, 2333, 3333 ) );
+
+        p->layouts.append ( new QRect ( 333,  7665, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 2999, 7665, 2333, 3333 ) );
+        p->layouts.append ( new QRect ( 5665, 7665, 2333, 3333 ) );
+
+        // add to the list
+        d->m_photoSizes.append ( p );
+
         // ========== 4 x 6
         p = new TPhotoSize;
         p->label = i18n ( "4 x 6\"" );
Comment 5 caulier.gilles 2009-06-30 12:43:34 UTC
Nicolas,

For me, this patch sound fine. 

Try to contact Angelo directly by mail to see if he is agree to apply this patch in svn.

Note : 0.4.0 release is planed for this week end.

Gilles
Comment 6 Nicolas L. 2009-07-04 22:44:47 UTC
SVN commit 991432 by nlecureuil:

Add support for 2-1/3" x 3-1/3" pictures
CCBUG:188426
CCMAIL:anaselli@linux.it


 M  +23 -0     wizard.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=991432
Comment 7 HectorG 2009-07-05 15:15:41 UTC
Angelo,

How do I try this out is it just replacing a file on my computer with this one? Should I be able to emerge this already?
Comment 8 Angelo Naselli 2009-07-05 15:50:34 UTC
Hector (comment #7), unfortunately you have to rebuild kipi-plugins from svn...
Maybe with Nicolas we can patch 0.4.0 but only form Mandriva...
Comment 9 Nicolas L. 2009-07-05 16:19:18 UTC
i will add this on mandriva today
Comment 10 Angelo Naselli 2009-07-21 01:03:27 UTC
SVN commit 1000166 by anaselli:

Added page layout template file, thanks to Andreas Trink
Now users can add their own template 
CCMAIL: atrink@nociaro.org,  kde-imaging@kde.org
BUG: 188426

 M  +4 -0      CMakeLists.txt  
 M  +1 -7      TODO  
 A             templates (directory)  
 A             templates/10.5x14.8cm.desktop  
 A             templates/10x13.33cm.desktop  
 A             templates/10x15cm.desktop  
 A             templates/10x15cmAlbum.desktop  
 A             templates/11.5x15cmAlbum.desktop  
 A             templates/13x18cm.desktop  
 A             templates/20x25cm.desktop  
 A             templates/21x29.7cm.desktop  
 A             templates/3.5x5.desktop   [TRAILING SPACE]
 A             templates/4x6.desktop   [TRAILING SPACE]
 A             templates/4x6Album.desktop  
 A             templates/5x7.desktop   [TRAILING SPACE]
 A             templates/6x9cm.desktop  
 A             templates/8x10.desktop   [TRAILING SPACE]
 A             templates/9x13cm.desktop  
 A             templates/Album-Collage.desktop  
 A             templates/Album-Collage1.desktop  
 A             templates/Photoframe.desktop  
 A             templates/Small-Thumbnails.desktop  
 A             templates/Thumbnails.desktop  
 A             templates/templates.xml  
 M  +146 -432  wizard.cpp  
 M  +1 -1      wizard.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1000166
Comment 11 caulier.gilles 2017-07-11 13:42:53 UTC
With new PrintCreator from digiKam core version 5.7.0, the problem is not
reproducible.

Gilles Caulier