Bug 157987 - Juk should NOT convert album covers to PNG format
Summary: Juk should NOT convert album covers to PNG format
Status: RESOLVED FIXED
Alias: None
Product: juk
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-17 22:36 UTC by Artem S. Tashkinov
Modified: 2008-05-10 04:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem S. Tashkinov 2008-02-17 22:36:33 UTC
Version:            (using KDE 4.0.1)
Installed from:    Compiled From Sources
Compiler:          GCC 4.2.3 i686 vanilla
OS:                Linux

Juk in both KDE 3.5.9 and 4.0.1 downloads album cover images in JPG/GIF/PNG formats and then converts them to PNG. I don't think it's a wise decision because recompressed images consume a lot more space than their original versions.

In short, let Juk keep downloaded cover albums images intact.
Comment 1 Fabio Locati 2008-03-11 01:54:34 UTC
The PNG is not compressed (is compressed but in a lossless way as wikipedia says http://en.wikipedia.org/wiki/Portable_Network_Graphics ), than I don't see the problem.
Comment 2 Artem S. Tashkinov 2008-03-11 06:28:22 UTC
The problem is that, e.g. the original JPG weighs 80KB (800x800) and the resulting PNG weighs 1MB.

That's not smart to convert from the *lossy* formart to *lossless*.

It's like getting covers @128Kbit mp3 and saving them as FLAC files.

Comment 3 Fabio Locati 2008-03-11 18:14:47 UTC
yes, you are right, but the thing is that if we have to manage a lot of different types of images we have to change a lot of code. Plus png is the only complete free type for a bitmap image.
Comment 4 Artem S. Tashkinov 2008-03-11 19:59:21 UTC
I've always thought that showing an image using means of Qt library is as easy as using few library calls. So, I don't see that there has to be any kind of complicated management.

Of course, PNG is open but since Qt natively supports GIF and JPEG and Qt is covered by GPL I see no reason not to use these two image formats in Juk. If we followed you logic, then every other application in KDE should have stopped supporting GIFs and JPEGs - which not an issue.

I suppose Scott Wheeler should voice here.
Comment 5 Scott Wheeler 2008-03-11 22:59:41 UTC
I'd tend to agree that the conversion isn't necessary, that said (a) Michael Pyne wrote this code, not me, so usually this would be more up to him and (b) I'm not really maintaining JuK in KDE 4.  (I originally didn't want it shipped because of that, but some of the KDE folks felt it was important to have some media player there for KDE 4.)
Comment 6 Artem S. Tashkinov 2008-03-12 08:57:46 UTC
So, someone, please, reassign this bug to Michael Pyne. If he decides it's not worth it then I suppose it's safe to close it as WONT_FIX.
Comment 7 Michael Pyne 2008-05-08 04:39:16 UTC
I'll go ahead and have downloaded covers saved unconverted.  The smaller thumbnail sizes will still need to be PNG however.
Comment 8 Michael Pyne 2008-05-10 04:33:08 UTC
SVN commit 806109 by mpyne:

Fix bug 157987 (JuK unnecessarily converts all cover art to PNG) in trunk.  Now when JuK downloads cover
art it will simply copy it in place instead of converting it to PNG en route.

CCBUG:157987


 M  +41 -13    covermanager.cpp  
 M  +3 -1      covermanager.h  
 M  +7 -12     playlist.cpp  
 M  +10 -10    webimagefetcher.cpp  
 M  +2 -1      webimagefetcher.h  
 M  +1 -13     webimagefetcherdialog.cpp  
 M  +1 -1      webimagefetcherdialog.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=806109
Comment 9 Michael Pyne 2008-05-10 04:34:54 UTC
SVN commit 806110 by mpyne:

Fix bug 157987 (JuK unnecessarily converts cover art to PNG) in the 4.0 branch.

BUG:157987


 M  +41 -13    covermanager.cpp  
 M  +3 -1      covermanager.h  
 M  +7 -12     playlist.cpp  
 M  +10 -10    webimagefetcher.cpp  
 M  +2 -1      webimagefetcher.h  
 M  +1 -13     webimagefetcherdialog.cpp  
 M  +1 -1      webimagefetcherdialog.h  


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