From 5bed6e4a4c916a97f8fe4d1b07f7eecf4d733b90 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 22 Nov 2024 18:41:30 +0900 Subject: Rename 'digikam' folder to 'src' Signed-off-by: Michele Calgaro (cherry picked from commit ee0d99607c14cb63d3ebdb3a970b508949fa8219) --- src/libs/jpegutils/jpegutils.h | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/libs/jpegutils/jpegutils.h (limited to 'src/libs/jpegutils/jpegutils.h') diff --git a/src/libs/jpegutils/jpegutils.h b/src/libs/jpegutils/jpegutils.h new file mode 100644 index 00000000..ad384770 --- /dev/null +++ b/src/libs/jpegutils/jpegutils.h @@ -0,0 +1,44 @@ +/* ============================================================ + * + * This file is a part of digiKam project + * http://www.digikam.org + * + * Date : 2004-09-29 + * Description : perform lossless rotation/flip to JPEG file + * + * Copyright (C) 2004-2005 by Renchi Raju + * Copyright (C) 2006-2009 by Gilles Caulier + * + * This program is free software; you can redistribute it + * and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; + * either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * ============================================================ */ + +#ifndef JPEGUTILS_H +#define JPEGUTILS_H + +// TQt includes. + +#include +#include + +namespace Digikam +{ + +bool loadJPEGScaled(TQImage& image, const TQString& path, int maximumSize); +bool exifRotate(const TQString& file, const TQString& documentName); +bool jpegConvert(const TQString& src, const TQString& dest, const TQString& documentName, + const TQString& format=TQString("PNG")); +bool isJpegImage(const TQString& file); + +} + +#endif /* JPEGUTILS_H */ -- cgit v1.2.1