After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329581 - Added 3.5 and 8.5 constraints to Crop
Added 3.5 and 8.5 constraints to Crop
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Editing
CVS
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 332033 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-02 10:53 UTC by Bengt Thuree
Modified: 2008-03-26 10:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1.61 KB, patch)
2006-02-02 10:55 UTC, Bengt Thuree
none Details | Review
Some extra ratio constraints (1.69 KB, patch)
2006-10-15 05:33 UTC, Bengt Thuree
none Details | Review
Some extra ratio constraints (1.81 KB, patch)
2006-10-15 06:33 UTC, Bengt Thuree
none Details | Review
Some extra ratio constraints for cropping (3.06 KB, patch)
2006-10-15 13:04 UTC, Bengt Thuree
none Details | Review

Description Bengt Thuree 2006-02-02 10:53:02 UTC
I wanted to create some photos that were 3.5" * 8" and 8.5" * 11", and found
that F-Spot did not handle this.

Therefore I created a small patch and attached it here.

Also, please check bug 329174 (http://bugzilla.gnome.org/show_bug.cgi?id=329174)
for a possibility to have variable crop, as well as bug 329299
(http://bugzilla.gnome.org/show_bug.cgi?id=329299) for toggling between
portrait/landscape while selecting crop area)
Comment 1 Bengt Thuree 2006-02-02 10:55:07 UTC
Created attachment 58575 [details] [review]
Patch

diff -u -p -r1.78 PhotoView.cs
--- PhotoView.cs        31 Jan 2006 20:05:44 -0000      1.78
+++ PhotoView.cs        2 Feb 2006 10:47:35 -0000
@@ -107,14 +107,21 @@ public class PhotoView : EventBox {

        private static SelectionConstraint [] constraints = {
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("No Constraint"), 0.0),
+
+               new SelectionConstraint (Mono.Posix.Catalog.GetString ("3.5 x 5"), 5 / 3.5),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("4 x 3 (Book)"), 4.0 / 3.0),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("4 x 6 (Postcard)"), 6.0 / 4.0),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("5 x 7 (L, 2L)"), 7.0 / 5.0),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("8 x 10"), 10.0 / 8.0),
+               new SelectionConstraint (Mono.Posix.Catalog.GetString ("8.5 x 11"), 11 / 8.5),
+
+               new SelectionConstraint (Mono.Posix.Catalog.GetString ("3.5 x 5 Portrait"), 3.5 / 5),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("4 x 3 Portrait (Book)"), 3.0 / 4.0),                new SelectionConstraint (Mono.Posix.Catalog.GetString ("4 x 6 Portrait (Postcard)"), 4.0 / 6.0),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("5 x 7 Portrait (L, 2L)"), 5.0 / 7.0),
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("8 x 10 Portrait"), 8.0 / 10.0),
+               new SelectionConstraint (Mono.Posix.Catalog.GetString ("8.5 x 11 Portrait"), 8.5 / 11),
+
                new SelectionConstraint (Mono.Posix.Catalog.GetString ("Square"), 1.0)
        };
Comment 2 Bengt Thuree 2006-05-15 15:16:14 UTC
Any problem with this patch? Since it has not been accepted or reviewed.
Comment 3 Pasi Savolainen 2006-05-21 14:13:26 UTC
I would also suggest following lines:

// Film/TV constraints (4:3 is already there)
new SelectionConstraint (Mono.Posix.Catalog.GetString ("3:2 (35mm Film/Slide)"), 3.0 / 2.0),
new SelectionConstraint (Mono.Posix.Catalog.GetString ("16:9 (Widescreen)"), 16.0 / 9.0),

new SelectionConstraint (Mono.Posix.Catalog.GetString ("3:2 Portrait (35mm Film/Slide)"), 2.0 / 3.0),
new SelectionConstraint (Mono.Posix.Catalog.GetString ("16:9 Portrait (Widescreen)"), 9.0 / 16.0),


// ABC -system
new SelectionConstraint (Mono.Posix.Catalog.GetString ("A -system (A4,A5..)"), 1.4142 / 1.0),
new SelectionConstraint (Mono.Posix.Catalog.GetString ("A -system Portrait (A4,A5..)"), 1.0 / 1.4142),

Additionally very common image sizes are (in centimeters) 10x13, 10x15, 11x15, 11x17, 34x50 and 50x75, some of which are achievable with 4:3 or 2:3 constraint ratio.
Comment 4 Alexandre Prokoudine 2006-09-22 07:42:21 UTC
Could someone possibly add other suggested ratios and redo the patch before testing could be done?
Comment 5 Bengt Thuree 2006-10-15 05:33:51 UTC
Created attachment 74743 [details] [review]
Some extra ratio constraints

Modified the text
-----------------
-new ... (Catalog.GetString ("4 x 3 (Book)"), 4.0 / 3.0),
+new ... (Catalog.GetString ("4 x 3 (Book, 35mm, Screen)"), 4.0 / 3.0),

New ones
--------
+new ... (Catalog.GetString ("3.5 x 5"), 5.0 / 3.5),
+new ... (Catalog.GetString ("8.5 x 11"), 11.0 / 8.5),
+new ... (Catalog.GetString ("16 x 9 (Widescreen)"), 16.0 / 9.0),
+new ... (Catalog.GetString ("ISO paper size (A4, A5)"), 1.4142 / 1.0),
Comment 6 Bengt Thuree 2006-10-15 05:39:17 UTC
*** Bug 332033 has been marked as a duplicate of this bug. ***
Comment 7 Pasi Savolainen 2006-10-15 05:55:17 UTC
4x3 is not 35mm ratio, 2x3 is.
Comment 8 Bengt Thuree 2006-10-15 06:33:41 UTC
Created attachment 74745 [details] [review]
Some extra ratio constraints

Ok, hopefully I got it correct this time.
I put the 35mm comment to ratio 4 * 6
Comment 9 Stephane Delcroix 2006-10-15 10:24:30 UTC
I thing we now can add some ratios since the list of pre-defined is shorter than ever (auto adapt for portrait/landscape).

If you add 16/9 to crop for wallpapers on widescreens, you're wrong. WideScreen computer displays are 16/10 (like in 1920x1200)
Comment 10 Bengt Thuree 2006-10-15 13:04:32 UTC
Created attachment 74753 [details] [review]
Some extra ratio constraints for cropping

Ok, hope this one is better...:)
Comment 11 Jerzy Jalocha N 2008-01-02 01:58:05 UTC
From the foregoing comments, It's not clear to me, if the common cinema 2.391:1 ratio is included. (http://en.wikipedia.org/wiki/Aspect_ratio) If not, this would be very appreciated.

I'd like to know, also what happens to this patch. As of version 0.4.0 shipped with Ubuntu Gutsy Gibbon, only the following constraints are available:
* 4x3 (book)
* 4x6 (postcard)
* 5x7 (L, 2L)
* 8x10
* square

User-defined constraint would be definitely appreciated!
Comment 12 Stephane Delcroix 2008-03-26 10:23:15 UTC
custom ratios added in r3785