26 #ifndef DIGIKAM_THUMB_NAIL_CREATOR_H
27 #define DIGIKAM_THUMB_NAIL_CREATOR_H
45 class DImgLoaderObserver;
84 const QRect& detailRect)
const;
91 const QRect& detailRect)
const;
97 void setThumbnailSize(
int thumbnailSize);
114 void setExifRotate(
bool rotate);
122 void setOnlyLargeThumbnails(
bool onlyLarge);
128 void setRemoveAlphaChannel(
bool removeAlpha);
139 int thumbnailSize()
const;
147 int storedSize()
const;
153 void store(
const QString& path,
const QImage& image)
const;
155 void storeDetailThumbnail(
const QString& path,
156 const QRect& detailRect,
157 const QImage& image)
const;
163 QString errorString()
const;
169 void deleteThumbnailsFromDisk(
const QString& filePath)
const;
179 static QString identifierForDetail(
const ThumbnailInfo& info,
187 const QRect& detailRect = QRect())
const;
191 bool pregenerate)
const;
192 QImage loadWithDImgScaled(
const QString& path,
196 const QRect& detailRect,
198 QImage loadImagePreview(
const DMetadata& metadata)
const;
199 QImage loadPNG(
const QString& path)
const;
201 QImage handleAlphaChannel(
const QImage& thumb)
const;
204 bool fromEmbeddedPreview,
205 bool fromDetail)
const;
206 QImage exifRotate(
const QImage& thumb,
int orientation)
const;
208 void store(
const QString& path,
210 const QRect& rect)
const;
213 const QRect& rect)
const;
214 QImage scaleForStorage(
const QImage& qimage)
const;
225 void deleteFromDiskFreedesktop(
const QString& filePath)
const;
227 void initThumbnailDirs();
228 QString thumbnailPath(
const QString& uri)
const;
232 static QString normalThumbnailDir();
233 static QString largeThumbnailDir();
234 static QString thumbnailPath(
const QString& filePath,
const QString& basePath);
235 static QString thumbnailUri(
const QString& filePath);
236 static QString thumbnailPathFromUri(
const QString& uri,
const QString& basePath);
Definition: dimgloaderobserver.h:41
Definition: drawdecoding.h:48
Definition: iccprofile.h:43
Definition: thumbnailcreator.h:51
StorageMethod
Definition: thumbnailcreator.h:55
@ FreeDesktopStandard
Definition: thumbnailcreator.h:56
Definition: thumbnailinfo.h:40
Definition: thumbnailcreator_p.h:83
Definition: thumbnailinfo.h:112
Definition: thumbnailinfo.h:58
Definition: thumbsdb.h:62
Definition: datefolderview.cpp:43