Skip to content

Image Opening - Parameter is not Valid #2217

@Geforced

Description

@Geforced

Windows OS version

Windows 10 22H2

ImageGlass version

v9.3.2.520

ImageGlass release

Classic

1️⃣ Steps to reproduce

Opening any image

2️⃣ Actual behavior

Unhandled Exception when opening any image.


Error:

Parameter is not valid.

System.ArgumentException: Parameter is not valid.
at Windows.Win32.Graphics.GdiPlus.StatusExtensions.ThrowIfFailed(Status status)
at System.Drawing.Bitmap..ctor(Stream stream, Boolean useIcm)
at ImageGlass.Gallery.ThumbnailCacheManager.GetImage(Guid guid, IAdaptor adaptor, String filePath, Size thumbSize, UseEmbeddedThumbnails useEmbeddedThumbnails, Boolean autoRotate, Boolean clone) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Gallery\Cache\ThumbnailCacheManager.cs:line 1009
at ImageGlass.Gallery.ImageGalleryItem.GetCachedImage(CachedImageType imageType) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Gallery\Item\ImageGalleryItem.cs:line 503
at ImageGlass.UI.ModernGalleryRenderer.DrawItem(Graphics g, ImageGalleryItem item, ItemState state, Rectangle bounds) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.UI\Renderers\ModernGalleryRenderer.cs:line 178
at ImageGlass.Gallery.StyleRenderer.RenderItems(Graphics g) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Gallery\Renderer\StyleRenderer.cs:line 434
at ImageGlass.Gallery.StyleRenderer.Render(Graphics graphics) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Gallery\Renderer\StyleRenderer.cs:line 636
at ImageGlass.Gallery.ImageGallery.OnPaint(PaintEventArgs e) in D:_GITHUB@d2phap\ImageGlass\Source\Components\ImageGlass.Gallery\ImageGallery.cs:line 1675
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)

3️⃣ Expected behavior

The image is opened normally without any error.

4️⃣ Screenshots / Video / Sample image file

Image

5️⃣ Additional context

If i click continue in the error dialog i can see the image, but at the bottom of ImageGlass there is a big red cross.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions