Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628688 - media-gfx/converseen- - add support for media-gfx/graphicsmagick (was: version bump request)
Summary: media-gfx/converseen- - add support for media-gfx/graphicsmagick (was:...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Philipp Rösner
Keywords: PATCH, PullRequest
Depends on:
Reported: 2017-08-23 08:02 UTC by Sergey Torokhov
Modified: 2023-03-22 22:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

media-gfx/converseen- (converseen-,1.20 KB, text/plain)
2017-08-23 08:04 UTC, Sergey Torokhov
media-gfx/converseen- (converseen-,1.20 KB, text/plain)
2017-08-23 08:20 UTC, Sergey Torokhov
media-gfx/converseen- (converseen-,1.19 KB, text/plain)
2017-08-23 08:34 UTC, Sergey Torokhov
converseen- (converseen-,2.16 KB, patch)
2017-09-17 00:13 UTC, Sergey Torokhov
Details | Diff
converseen- (converseen-,1.35 KB, text/plain)
2017-09-17 00:14 UTC, Sergey Torokhov

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Torokhov 2017-08-23 08:02:48 UTC
Converseen- was released on 28 feb 2017. 

Gwenview:5 has no batch images processing more due to absence of it in kipi-plugins:5 as this functions was moved directly to digikam code. 

Current version of converseen in Gentoo tree is 0.6.8 and depends on Qt4. 

Please review attached .ebuild to update media-gfx/converseen package. 

Reproducible: Always
Comment 1 Sergey Torokhov 2017-08-23 08:04:04 UTC
Created attachment 490194 [details]
Comment 2 Sergey Torokhov 2017-08-23 08:14:17 UTC
Comment on attachment 490194 [details]

># Copyright 1999-2017 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
>LANGSLONG="cs_CZ da_DK de_DE fr_FR hu_HU it_IT ja_JP pl_PL pt_BR ru_RU tr_TR"
>inherit cmake-utils
>DESCRIPTION="Batch image converter and resizer based on ImageMagick"
>KEYWORDS="~amd64 ~x86"
>for x in ${LANGS}; do
>	IUSE="${IUSE} linguas_${x}"
>for x in ${LANGSLONG}; do
>	IUSE="${IUSE} linguas_${x%_*}"
># FIXME: graphicsmagick dependency does not work properly, failures when compiling
>#	|| ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx,imagemagick] )
>	dev-qt/qtcore:5
>	dev-qt/qtgui:5
>	media-gfx/imagemagick:=[cxx]
>DOCS=( )
>src_prepare() {
>	for x in ${LANGSLONG}; do
>		if use !linguas_${x%_*}; then
>			rm -f "loc/${PN}_${x}."* || die
>			sed -i -e "\,/${PN}_${x}\...,d" CMakeLists.txt || die
>		fi
>	done
>	for x in ${LANGS}; do
>		if use !linguas_${x}; then
>			rm -f "loc/${PN}_${x}."* || die
>			sed -i -e "\,/${PN}_${x}\...,d" CMakeLists.txt || die
>		fi
>	done
>	eapply_user
Comment 3 Sergey Torokhov 2017-08-23 08:17:51 UTC
Sorry, I forgot to add "da_DK" LANGSLONG use flag to initial ebuild.
Comment 4 Sergey Torokhov 2017-08-23 08:20:30 UTC
Created attachment 490196 [details]
Comment 5 Sergey Torokhov 2017-08-23 08:34:53 UTC
Created attachment 490198 [details]
Comment 6 Sergey Torokhov 2017-09-13 12:20:26 UTC
It seems I found the way to compile Converseen with GraphicsMagick[cxx,imagemagick] versus ImageMagick[cxx] but it needs FindGraphicsMagick.cmake and LibFindMacros.cmake from Darktable project 
and also some modification of ./CMakLIsts.txt and ./src{converter.cpp,globals.h} files.

I successfully build modified sources, launch Converseen and "Resize" -> 50% several jpg-files.
I need some additional tests before uploading patch if it requires for this .ebuild.
Comment 7 Sergey Torokhov 2017-09-17 00:13:22 UTC
Created attachment 494788 [details, diff]

Patch that allows to build and use Converseen(- with media-gfx/graphicsmagick[cxx,imagemagick] backend instead of media-gfx/imagemagick[cxx] ones.

I decided not to use external .cmake files (FindGraphicsMagick.cmake and LibFindMacros.cmake from Darktable project) ad just modified ./CMakLIsts.txt and ./src{converter.cpp,globals.h} files.

With builded in graphicsmagick successfully resize, rotate and flip images.

But for 1 file I got the entirely black image after change format form png to jpg via Converseen, while "convert test.png -resize 50% test.jpg" results normal image.
Comment 8 Sergey Torokhov 2017-09-17 00:14:42 UTC
Created attachment 494790 [details]
Comment 9 Larry the Git Cow gentoo-dev 2018-01-09 01:23:03 UTC
The bug has been referenced in the following commit(s):

commit 4f01d583d3b144b0d102c7f9bc6cabcdff60eefe
Author:     Andreas Sturmlechner <>
AuthorDate: 2018-01-09 01:15:13 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2018-01-09 01:22:45 +0000

    media-gfx/converseen: version bump
    Thanks-to: Sergey Torokhov <>
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-gfx/converseen/Manifest                      |  1 +
 media-gfx/converseen/converseen-     | 32 +++++++++++
 .../files/converseen-  | 64 ++++++++++++++++++++++
 media-gfx/converseen/metadata.xml                  |  2 +-
 4 files changed, 98 insertions(+), 1 deletion(-)}
Comment 10 Andreas Sturmlechner gentoo-dev 2018-01-09 01:25:12 UTC
(In reply to Sergey Torokhov from comment #7)
> Created attachment 494788 [details, diff] [details, diff]
> converseen-
Thanks for your work. This patch should be submitted upstream. I guess for upstream, the cmake-module approach would be better. No need to reinvent the wheel when there are existing solutions.
Comment 11 Jonas Stein gentoo-dev 2021-01-17 19:59:14 UTC
version bump was done by asturm. -no graphicsmagick support