Jump to content

File 'Open' error when opening 'JPG' file


Yuri-S
Go to solution Solved by Rick Brewster,

Recommended Posts

Hi,
I recently (sept 2022) started using Paint.net to augment my image editing; in addition to the programs I now use.
Primary has been Olympus Workspace (now 2.1) , Luminar 4 and since the New Year 2023, Topaz DeNoise AI.
I allowed the recent update to 5.02 to install on Feb 25, 2023. 
On doing so, Paint.net immediately started giving me 'OPEN' errors when attempting to open/load both Luminar 4 and DeNoiseAI jpg images.
I had NO problems of ANY kind with moving and using images from ANY sources to Paintnet, prior to the 5.0.2 update.
I do have BoltBait and TR additions installed - all were operational without any issues.
A also have the full text 'error detail report' - however there doesn;t seem to be an ability to 'attach' a file - I understand that... but if you want, pls provide a way to upload or email.
I'm not certain which 'version' I had prior to the 'update'- AND a recent windows update seems to have 'reset' my system recovery, so no system rollback to whatever version I had before.
I tried a 'clean' install of latest 5.0.2, SAME Problem.
Took some time to find an older version which doesn't use an installer which goes to the 5.0.2 version.
I finally found a download for the ZIP version of 4.3 from 2022. Now Installed.
NO PROBLEMS in opening JPG files from any other sources.
Pls lemme know where I can send the error report (contains detail on my computer's operational environment).
Thx
Yuri

Link to comment
Share on other sites

56 minutes ago, BoltBait said:

Please zip up one of the images that refuses to open and attach the zip file here.

 

Just be sure the image is family-friendly.

The images I have which will not open are all larger (by at least 2mb) than accepted MAX file size for attachments here (256 kB).
Reducing the file size is possible, but I can't assure the reduced file will also be 'rejected' - I have removed/uninstalled 5.0.2 and currently have 4.3 installed.
Don't think I'm willing to go thru the whole update to 5.0.2 process again. It's been some hours of time spent trying a number of images, deciding it was the update and then uninstalling 5.0.2, making sure the system was well cleaned out and reinstalling 4.3...
If there's a way to email or some other method to get you an image which WAS rejected (approx 3+ mb), lemme know.
Thx
Yuri

Link to comment
Share on other sites

2 hours ago, Yuri-S said:

A also have the full text 'error detail report' - however there doesn;t seem to be an ability to 'attach' a file

 

You can simply copy and paste the text into a reply on this thread.  To save space, click on the 'spoiler' icon in the top of the tool bar (eye with black pupil) and paste it in the bar that opens up.

 

30b8T8B.gif

How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

 
Link to comment
Share on other sites

1 hour ago, Yuri-S said:

Reducing the file size is possible, but I can't assure the reduced file will also be 'rejected'

You can try and we'll see what happens. To fix a bug like this it's critical that I have access to a file that causes the bug.

 

You can use the portable version of 5.0.2 which will let you run the app without having to install it, and it won't overwrite your current installation either: https://github.com/paintdotnet/release/releases/latest/

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

1 hour ago, Rick Brewster said:

You can try and we'll see what happens. To fix a bug like this it's critical that I have access to a file that causes the bug.

 

You can use the portable version of 5.0.2 which will let you run the app without having to install it, and it won't overwrite your current installation either: https://github.com/paintdotnet/release/releases/latest/

Hi Rick,
OK, I downloaded the portable... mostly the same issue.  But as I'm shrinking down the files which give the 'Open' error, at a point getting to closer to 256Kb, they start opening...
None of the files which are proving a problem in Paintnet are an issue with any other program I have used, which commonly accept jpgs.
This files which remain close to my working size (4 to 8 Mb @ 300 to 350 DPI) is when I get the 'Open error'. I seem to get a few down to around 2Mb, and get the error...
I'm 'done' with trying to get the images down to under 256kB...
If you'd like an image which won;t Open, then it'll have to be bigger , 2 to 3Mb... Let me know.
I've attached the Open File Error Detail report I've gotten from one of these images - if that might help shed some light.
Thx
Yuri

Paintnet-OpenFileErrorDetail.txt

Link to comment
Share on other sites

5 hours ago, Yuri-S said:

Olympus Workspace (now 2.1) , Luminar 4 and since the New Year 2023, Topaz DeNoise AI.

 

I suspect there might be some problematic metadata attached to these files.

 

Will these images open in MS Paint? If so, try saving a copy and see in PDN will open the copy.

Link to comment
Share on other sites

56 minutes ago, Ego Eram Reputo said:

 

I suspect there might be some problematic metadata attached to these files.

 

Will these images open in MS Paint? If so, try saving a copy and see in PDN will open the copy.

Image opens in MS Paint, saved from MS Paint as JPG, no changes made, attempted to open in Portable 5.0.2 - same error msg.

Link to comment
Share on other sites

Yeah this looks like an issue with the new IPTC metadata handling. Most likely an error from WIC that we can just suppress. cc @null54

 

You can try to e-mail me the image file, the e-mail address is listed at https://getpaint.net/contact.html

 

Once I've got an image that causes this error, I should be able to fix it really quick and then the 5.0.3 update will work smoothly for you.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

3 hours ago, Rick Brewster said:

Yeah this looks like an issue with the new IPTC metadata handling. Most likely an error from WIC that we can just suppress. cc @null54

 

You can try to e-mail me the image file, the e-mail address is listed at https://getpaint.net/contact.html

 

Once I've got an image that causes this error, I should be able to fix it really quick and then the 5.0.3 update will work smoothly for you.

Email & image file sent
Thx
Yuri

  • Like 1
Link to comment
Share on other sites

  • Solution

Okay I got the image and I figured out the fix. It was as I suspected, one of the IPTC metadata items isn't loading correctly. Suppressed the error and now it works.

 

image.png

  • Like 1
  • Upvote 1

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

1 hour ago, Tactilis said:

Or is it an error in the IPTC data itself?

 

It is an error in the IPTC data.

Only the first item is written correctly, the remaining items omit the data length from the IPTC record header.

WIC interprets the start of the next IPTC record as the data length (7170 bytes), and crashes when it exceeds the total length of the IPTC section (52 bytes).

  • Like 2
  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

16 hours ago, null54 said:

 

It is an error in the IPTC data.

Only the first item is written correctly, the remaining items omit the data length from the IPTC record header.

WIC interprets the start of the next IPTC record as the data length (7170 bytes), and crashes when it exceeds the total length of the IPTC section (52 bytes).

I'll send Topaz a note with reference to the problem their jpg file is causing.
... but why would this cause a problem in 5.0.2 and not in 4.3.12 or in other programs which do open the image file?
... rhetorical ... I have some very basic programming knowledge, but really only concerned with images 'working' and knowing that jpg is hardly a tight std...  LOL!
thx
Yuri

Link to comment
Share on other sites

54 minutes ago, Yuri-S said:

... but why would this cause a problem in 5.0.2 and not in 4.3.12 or in other programs which do open the image file?

 

The error is in the IPTC metadata. 5.0.2 processes this, while 4.3.12 and most other programs do not.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...