Henrik Posted February 19, 2016 Share Posted February 19, 2016 (edited) Hi there When opening a TIFF file, I get this error: System.ArgumentException: Parameter is not valid. at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) at PaintDotNet.Data.GdiPlusFileType.OnLoad(Stream input) in D:\src\pdn\src\PaintDotNet\Data\GdiPlusFileType.cs:line 127 at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496 at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158 Using v4.0.9 on Windows 7 Pro x64. I can open the TIFF file okay in "Microsoft Office Picture Manager" I uploaded the file here: http://gpsleg.dk/Solsikkeolie.tiff Do tell if you need any more information. Best regards Henrik Edited February 19, 2016 by Henrik Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted February 19, 2016 Share Posted February 19, 2016 GDI+ can't open the file, therefore Paint.NET won't be able to open it. Not much that can be done here. (GDI+ is a Windows component for image and graphics stuff. In Windows 7 and later, GDI+ is actually a wrapper around WIC, the Windows Imaging Component. So really, it's WIC that can't open the file.) Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
dipstick Posted February 20, 2016 Share Posted February 20, 2016 Try installing gdi+ and see if that helps. Interestingly enough, I can open your image in my PDN installed in Linux under Wine. I did install gdi+ on that virtual drive. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted February 20, 2016 Share Posted February 20, 2016 Try installing gdi+ and see if that helps. Interestingly enough, I can open your image in my PDN installed in Linux under Wine. I did install gdi+ on that virtual drive. GDI+ is a component that is built into Windows; it isn't something you'd install (on Windows). I'm pretty sure the Wine implementation of GDI+ is either using Cairo or simply the X server. So you can't compare apples to oranges. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
dipstick Posted February 20, 2016 Share Posted February 20, 2016 (edited) https://msdn.microsoft.com/en-us/library/windows/desktop/ms533798(v=vs.85).aspx What's interesting here, is that I can't open that .tiff file on PDN v4.0.9 in Win10. I can however open it fine in PhotoShop v7 (14 year old program) along with Irfanview on the same system. I find that fascinating, even though I have no idea why that is. I wonder if it has to due with the Alpha Channel in the tiff image? The Alpha Channel is correctly displayed in PhotoShop, but everything else I've tried, just flattens it. It's also encoded with CMYK colorspace. If anyone is interested, here is the metadata on the tiff file as reported by Gimp: Hidden Content: metadata 2015-06-09T16:45:53+02:002011-10-06T09:13:2902015-06-09T16:45:53+02:00Adobe Photoshop CC 2014 (Macintosh)image/tiffunknown148081379018/1 55/1 0/0 0/0EF-S18-55mm f/3.5-5.645160/1unknown1.1.0_MG_5809.CR25.75.0As Shot3250+60.005+50+25025025000000000000000000000000000000000000000000000000255075+1.025000FalseMedium ContrastAdobe Standard3E87BAD76D425A28CE9A20DF0E1EDB86True0.3360280.0369520.6812930.7967670TrueTrue0, 032, 2264, 56128, 128192, 196255, 2554Coated FOGRA39 (ISO 12647-2:2004)2011-10-06T09:13:29xmp.iid:2d98d6fe-c829-4a6c-a211-e03379b1ba89xmp.did:05F9F0390D20681192B0DFE1678EEE74100unknown1480813790EF-S18-55mm f/3.5-5.618/155/10/00/0 Edited February 20, 2016 by dipstick Quote Link to comment Share on other sites More sharing options...
Broadway Posted February 20, 2016 Share Posted February 20, 2016 (edited) I'v got PDN 4.0.9 on Win7 64 bit installed. And I fail to open that tiff with PDN, too. What makes me wonder is that I can open it with the windows-built-in Photo-Viewer. Edited February 20, 2016 by Broadway Quote Link to comment Share on other sites More sharing options...
dipstick Posted February 20, 2016 Share Posted February 20, 2016 Looks to me like the problem is in the ability for PDN to open a CMYK Color tiff file. I imported the OP's tiff file in PhotoShop, changed color mode from CMYK to RGB and exported to tiff. It opened fine in PDN v4.0.9 in Win10 and the Alpha Channel was displayed correctly. That's my unscientific analyst anyway.......... Quote Link to comment Share on other sites More sharing options...
Henrik Posted February 22, 2016 Author Share Posted February 22, 2016 Thanks for all the answers. We will find a different solution. Sadly it seems there is nothing to do with PDN. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.