[Bug 210874] New: Wish for new option in resize-tool: fit into given dimensions

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] New: Wish for new option in resize-tool: fit into given dimensions

Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874

           Summary: Wish for new option in resize-tool: fit into given
                    dimensions
           Product: digikam
           Version: unspecified
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.0.0beta5 (using KDE 4.3.2)
OS:                Linux
Installed from:    SuSE RPMs

I would like to be able to resize images so they fit into a given frame while
retaining their aspect ratio - like imagemagick's resize.
Example original size       fitted to 10000*500
         1000*1000           500*500
        10000*1000          5000*500
          500*1000           250*500

Stefan

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=210874


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Core Plugin
            Version|unspecified                 |1.0.0
            Product|digikam                     |digikamimageplugins




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Johannes Wienke-3
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874


Johannes Wienke <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #1 from Johannes Wienke <languitar semipol de>  2009-10-17 20:33:50 ---
Isn't this what is already possible with the 2dim resize tool?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Johannes Wienke-3
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874


Johannes Wienke <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Core Plugin                 |BatchProcessImages
            Version|1.0.0                       |unspecified
            Product|digikamimageplugins         |kipiplugins




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Bugzilla from xeno@huehne-domain.de
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874





--- Comment #2 from Stefan Hühne <xeno huehne-domain de>  2009-10-18 12:11:49 ---
No. This is my experience.
Using 2dim-resize to 10000*500 on the above examples I get:
- the 1st example results in a 10000*500 black canvas with the original image
in the center scaled to 500*500. That's reasonable but not what I would like.
- the 2nd example results in a 10000*500 black canvas with the original image
in the center scaled to 500*50 !!. What may be the logic behind this?
- the 3rd example results in a 10000*500 black canvas with the original image
in the center scaled to 250*500. That's reasonable again.But still not what I
would like.

Using 1dim-resize to 500 on the above examples I get:
- the 1st example results in a 500*500 scaled image.
- the 2nd example results in a 500*50 scaled image.
- the 3rd example results in a 250*500 scaled image.
This is also not what I need.

I would like something like this (aspect ratio = width/height)

if (destination aspect ratio >= source aspect ratio)
   scale factor = destination height / source height
else
   scale factor = destination width / source width

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Johannes Wienke-3
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874





--- Comment #3 from Johannes Wienke <languitar semipol de>  2009-10-18 12:16:16 ---
Ok, I will have a look at the 2dim resize tool an add an option to select
whether you want the image to be filled to the specified size with a background
or not.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Bugzilla from xeno@huehne-domain.de
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874





--- Comment #4 from Stefan Hühne <xeno huehne-domain de>  2009-10-18 13:12:59 ---
Great! :-)
BTW what's the idea behind scaling the 10000*1000 image to 500*50 (2dim, 2nd
example), thus fitting neither dimension? I would have expected 5000*500.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Johannes Wienke-3
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874





--- Comment #5 from Johannes Wienke <languitar semipol de>  2009-10-18 13:17:47 ---
Probably a bug. ;)

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Johannes Wienke-3
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874





--- Comment #6 from Johannes Wienke <languitar semipol de>  2009-10-19 01:45:18 ---
SVN commit 1037411 by jwienke:

Complete refactoring of batch resize tool to a more object oriented interface.
Also tried to do bug fixing for 2 dim proportional tool. The border option
there is removed completely. The same behaviour can already be achieved with
the batch border tool.

Print preparation has the same behaviour as before the refactoring but I'm not
quiet sure that this is the desired behaviour. Will be checked soon.

CCBUG: 210874

 M  +1 -0      CMakeLists.txt  
 AM            resizecommandbuilder.cpp   [License: GPL (v2+)]
 AM            resizecommandbuilder.h   [License: GPL (v2+)]
 M  +75 -413   resizeimagesdialog.cpp  
 M  +26 -23    resizeimagesdialog.h  
 M  +586 -344  resizeoptionsdialog.cpp  
 M  +268 -52   resizeoptionsdialog.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1037411

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Johannes Wienke-3
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874


Johannes Wienke <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1




--- Comment #7 from Johannes Wienke <languitar semipol de>  2009-10-19 01:46:50 ---
Stefan, could you please check if all tools (except print stuff) now work as
expected for you?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 210874] Wish for new option in resize-tool: fit into given dimensions

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874


Andi Clemens <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|[hidden email]       |[hidden email]




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 210874] Wish for new option in resize-tool: fit into given dimensions

bugzilla_noreply
In reply to this post by Bugzilla from xeno@huehne-domain.de
https://bugs.kde.org/show_bug.cgi?id=210874

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[hidden email]         |[hidden email]
            Product|kipiplugins                 |digikam
          Component|general                     |BatchQueueManager-Tool-Resi
                   |                            |ze

--
You are receiving this mail because:
You are the assignee for the bug.