[Digikam-devel] [Bug 118539] wish: lossless image-editor for JPEGs
Gilles Caulier
caulier.gilles at kdemail.net
Thu Feb 8 15:48:49 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=118539
------- Additional Comments From caulier.gilles kdemail net 2007-02-08 16:48 -------
SVN commit 631612 by cgilles:
digikam from trunk : JPEG file save settings widget : add a "RED" warning message about this lossy compression image file format. An url link to wikipedia is given to learn more about JPEG...
This warning is displayed in Setup Save File dialog page and in Save File Dialog from editor
CCBUGS: 118539
M +17 -1 jpegsettings.cpp
--- trunk/extragear/graphics/digikam/libs/dimg/loaders/jpegsettings.cpp #631611:631612
@ -30,6 +30,7 @
#include <klocale.h>
#include <kdialog.h>
#include <knuminput.h>
+#include <kactivelabel.h>
// Local includes.
@ -49,12 +50,15 @
JPEGGrid = 0;
labelJPEGcompression = 0;
JPEGcompression = 0;
+ labelWarning = 0;
}
QGridLayout *JPEGGrid;
QLabel *labelJPEGcompression;
+ KActiveLabel *labelWarning;
+
KIntNumInput *JPEGcompression;
};
@ -63,7 +67,7 @
{
d = new JPEGSettingsPriv;
- d->JPEGGrid = new QGridLayout(this, 1, 1, KDialog::spacingHint());
+ d->JPEGGrid = new QGridLayout(this, 1, 2, KDialog::spacingHint());
d->JPEGcompression = new KIntNumInput(75, this);
d->JPEGcompression->setRange(1, 100, 1, true );
d->labelJPEGcompression = new QLabel(i18n("JPEG quality:"), this);
@ -77,8 +81,20 @
"large file size)<p>"
"<b>Note: JPEG is not a lossless image "
"compression format.</b>"));
+
+ d->labelWarning = new KActiveLabel(i18n("<qt><font size=-1 color=\"red\"><i>"
+ "Warning: <a href='http://en.wikipedia.org/wiki/JPEG'>JPEG</a> is a<br>"
+ "lossy compression<br>"
+ "image format!</p>"
+ "</i></qt>"), this);
+
+ d->labelWarning->setFrameStyle(QFrame::Box | QFrame::Plain);
+ d->labelWarning->setLineWidth(1);
+ d->labelWarning->setFrameShape(QFrame::Box);
+
d->JPEGGrid->addMultiCellWidget(d->labelJPEGcompression, 0, 0, 0, 0);
d->JPEGGrid->addMultiCellWidget(d->JPEGcompression, 0, 0, 1, 1);
+ d->JPEGGrid->addMultiCellWidget(d->labelWarning, 0, 0, 2, 2);
d->JPEGGrid->setColStretch(1, 10);
}
More information about the Digikam-devel
mailing list