Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarImage.hpp
diff options
context:
space:
mode:
authorfloydinator-git <78954063+floydinator-git@users.noreply.github.com>2024-09-10 23:04:09 -0400
committerfloydinator-git <78954063+floydinator-git@users.noreply.github.com>2024-09-10 23:04:09 -0400
commit1f5e8a462908a7c6e7eac5b53c70749837d29c64 (patch)
tree8b16b62548e221d5a0357680ea2d3d237fed17ad /source/core/StarImage.hpp
parent8457c2e9542230ce6c71d7fc696d4f79e4a5456c (diff)
Fix ImageMetadataDatabase::calculateImageSize calling Image::readPngMetadata on non-PNG images.
Diffstat (limited to 'source/core/StarImage.hpp')
-rw-r--r--source/core/StarImage.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/StarImage.hpp b/source/core/StarImage.hpp
index 478d074..aac0105 100644
--- a/source/core/StarImage.hpp
+++ b/source/core/StarImage.hpp
@@ -27,6 +27,7 @@ STAR_CLASS(Image);
class Image {
public:
static Image readPng(IODevicePtr device);
+ static bool isPng(IODevicePtr device);
// Returns the size and pixel format that would be constructed from the given
// png file, without actually loading it.
static tuple<Vec2U, PixelFormat> readPngMetadata(IODevicePtr device);