|
|
@ -104,7 +104,7 @@ TQString kmlExport::webifyFileName(const TQString &fileName)
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
TQImage kmlExport::generateSquareThumbnail(const TQImage& fullImage, int size)
|
|
|
|
TQImage kmlExport::generateSquareThumbnail(const TQImage& fullImage, int size)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQImage image = fullImage.smoothScale(size, size, TQ_ScaleMax);
|
|
|
|
TQImage image = fullImage.smoothScale(size, size, TQImage::ScaleMax);
|
|
|
|
|
|
|
|
|
|
|
|
if (image.width() == size && image.height() == size)
|
|
|
|
if (image.width() == size && image.height() == size)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -136,7 +136,7 @@ TQImage kmlExport::generateBorderedThumbnail(const TQImage& fullImage, int size)
|
|
|
|
int image_border = 3;
|
|
|
|
int image_border = 3;
|
|
|
|
|
|
|
|
|
|
|
|
// getting an image minus the border
|
|
|
|
// getting an image minus the border
|
|
|
|
TQImage image = fullImage.smoothScale(size -(2*image_border), size - (2*image_border), TQ_ScaleMax);
|
|
|
|
TQImage image = fullImage.smoothScale(size -(2*image_border), size - (2*image_border), TQImage::ScaleMax);
|
|
|
|
|
|
|
|
|
|
|
|
TQPixmap croppedPix(image.width() + (2*image_border), image.height() + (2*image_border));
|
|
|
|
TQPixmap croppedPix(image.width() + (2*image_border), image.height() + (2*image_border));
|
|
|
|
TQPainter painter(&croppedPix);
|
|
|
|
TQPainter painter(&croppedPix);
|
|
|
@ -195,7 +195,7 @@ void kmlExport::generateImagesthumb(KIPI::Interface* interface, const KURL& imag
|
|
|
|
matrix.rotate( info.angle() );
|
|
|
|
matrix.rotate( info.angle() );
|
|
|
|
image = image.xForm( matrix );
|
|
|
|
image = image.xForm( matrix );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
image = image.smoothScale(m_size, m_size, TQ_ScaleMax);
|
|
|
|
image = image.smoothScale(m_size, m_size, TQImage::ScaleMax);
|
|
|
|
|
|
|
|
|
|
|
|
TQImage icon;
|
|
|
|
TQImage icon;
|
|
|
|
if (m_optimize_googlemap)
|
|
|
|
if (m_optimize_googlemap)
|
|
|
@ -204,7 +204,7 @@ void kmlExport::generateImagesthumb(KIPI::Interface* interface, const KURL& imag
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// icon = image.smoothScale(m_iconSize, m_iconSize, TQ_ScaleMax);
|
|
|
|
// icon = image.smoothScale(m_iconSize, m_iconSize, TQImage::ScaleMax);
|
|
|
|
icon = generateBorderedThumbnail(image, m_iconSize);
|
|
|
|
icon = generateBorderedThumbnail(image, m_iconSize);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|