Fit Width produces RTE with some images

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Fit Width produces RTE with some images

Post by Borut »

Fit width produces a RTE with some JPG images:

Code: Select all

Error:  	480 (000001E0)
Desc:   	Can't create AutoRedraw image
Dll:    	0
Proc:   	SBS
Source: 	XYplorer
XY ver: 	11.00.0013
OS:     	Windows XP Professional (Service Pack 3), 32-bit
I am not able to recognise what is so special with images leading to this. Don, I'll try to send one to you per PM.

Edit:Hmmm, no attachments possible in PMs? Hmmm.
Win 10 Pro 64bit

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Fit Width produces RTE with some images

Post by admin »

You are the one using the preview in a maximized window, right? ;)

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Fit Width produces RTE with some images

Post by Borut »

admin wrote:You are the one using the preview in a maximized window, right? ;)
Yup, I am the one. :)
Win 10 Pro 64bit

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Fit Width produces RTE with some images

Post by admin »

Well, this error happens when a too large image is drawn. What is "too large" depends on the system state, the hard ware, the wheather... everything.

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Fit Width produces RTE with some images

Post by Borut »

admin wrote:What is "too large" depends on the system state, the hard ware, the wheather... everything.
Oh, yes, it must be the today's warm weather :mrgreen:, since other things are:

JPG...
Size:457548
Width: 1536
Height: 2048

Nothing special here. Plenty of memory...
Win 10 Pro 64bit

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Fit Width produces RTE with some images

Post by Borut »

Another hint: I have noticed that only for these problematic images your Info Panel Preview states for type:

Type: JPEG file (JFIF v1.1)

For other images, which do not have this width fitting problem (and here are included some portrait images with 6 times more bytes in them), it says only:

Type: JPEG file

Maybe this can help.
Win 10 Pro 64bit

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Fit Width produces RTE with some images

Post by admin »

Can you send me a link to download one of them?

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Fit Width produces RTE with some images

Post by Borut »

Sent.
Win 10 Pro 64bit

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Fit Width produces RTE with some images

Post by admin »

Borut wrote:Sent.
Got it, thanks, but it does not generate any error.

I'll have an idea to fix it anyway... tomorrow...

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Fit Width produces RTE with some images

Post by Borut »

admin wrote:but it does not generate any error.
Hmm, Don, I just checked: it does not produce error by me at home either. :? :shock: I am now flabbergasted.

I am sure this is the image (just renamed) that produced the error in my office. Differences: 2 monitors there, just one here. Different monitor sizes/ratios. I made all the tests with maximised floating preview.

No idea. I give up. :cry: Tomorrow is another day.
Win 10 Pro 64bit

admin
Site Admin
Posts: 67330
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Fit Width produces RTE with some images

Post by admin »

I was not joking when I said:
What is "too large" depends on the system state, the hard ware, the wheather... everything.

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Fit Width produces RTE with some images

Post by Borut »

Code: Select all

v11.00.0015 - 2012-05-11 14:42
    % Floating Preview: Rewrote "Fit Width" handling. Now it uses far 
      less resources and is faster too.
No more RTEs - it was possible to fit width of all images that I now tried in the floating preview.

Thank you!! :appl:
Win 10 Pro 64bit

Post Reply