Page 1 of 2

Scaling Icons

Posted: Fri Apr 21, 2017 7:32 pm
by Ribdevil
Hi.

I have an AmigaOne X5000, and have some problems.
I think it's a "pre-release" problems, but ..

1.- I can't scale the icons. or I make something wrong or the scale don't work at all.
Can anyone comment some on this?

2.- Keyboard. puffffff
----- I try a Logitech ST39 ( PS2 with usb adapter, works in PC) :: The intro anim in UBOOT is fast, but I canĀ“t enter in UBOOT ( keyboard don't work until workbench it's loaded).
----- HP 52A ( USB works in PC) :: Anim in UBOOT it's slowwwww, and again, can't enter in Uboot.
----- Logitech RT7R20 ( White MMkeyboard for Mac) :: Anim Slow, but, I can enter in Uboot, and get the menu.

Re: Scaling Icons

Posted: Sun Apr 23, 2017 1:54 pm
by broadblues
Scaling icons should work.

Do you have screen shot of your workbench prefs icons tab?

NOte whilst you can set scaling by percentage, you can also clamp the size to certain limits, if that maximum is set to 64 pixelsand and most of your icons are 64 pixels, scaling by 200% would have no visible effect. Except on smaller icons, which will be relative rare on a fresh insrall.

Re: Scaling Icons

Posted: Fri Apr 28, 2017 3:33 pm
by Ribdevil
screenshoot
screenshoot
I send the snapshoot of my screen.
1 window with 256x256 icons
1 window with 128 x 128 icons
and the icon preferences.

Thanks

Virginio

Re: Scaling Icons

Posted: Fri Apr 28, 2017 6:33 pm
by broadblues
Ah, so it's PNG icons that aren't scaling? What about standard AmigaOS icons?

Maybe the png icon module doesn't support scaling, I'm not sure I don't have it installed at present.

Perahaps convert the PNG icons into AmigaOS icons?

Re: Scaling Icons

Posted: Fri Apr 28, 2017 11:02 pm
by Ribdevil
Ok.
I try to convert the png icons, but if I remember well, in 4.1 FE works in all icons.

Thanks.

Virginio

Re: Scaling Icons

Posted: Sat Apr 29, 2017 7:32 am
by gazelle
broadblues wrote:Maybe the png icon module doesn't support scaling, I'm not sure I don't have it installed at present.
As I understand the iconmodule system, if your plugin doesn't support scaling icon.library will do it itself.

form iconmodule.doc:

Code: Select all

	[...]
	For icon formats where the request cannot be fulfilled with greater
	graphic accuracy than what a simple "resize with average" operation
	would provide, the function shall do nothing, return failure, and
	let icon.library do the scaling job on its own.
	[...]

Re: Scaling Icons

Posted: Sat Apr 29, 2017 3:07 pm
by broadblues
gazelle wrote:
broadblues wrote:Maybe the png icon module doesn't support scaling, I'm not sure I don't have it installed at present.
As I understand the iconmodule system, if your plugin doesn't support scaling icon.library will do it itself.

form iconmodule.doc:

Code: Select all

	[...]
	For icon formats where the request cannot be fulfilled with greater
	graphic accuracy than what a simple "resize with average" operation
	would provide, the function shall do nothing, return failure, and
	let icon.library do the scaling job on its own.
	[...]
That assumes that the pngicon module is correctly written and does indeed do nothing and return failure... it might also be worth verifying which versions of the png icon module are installed.

Re: Scaling Icons

Posted: Sat Apr 29, 2017 3:19 pm
by broadblues
Hmm I *do* have the png icon module installed on my SAM and I can confirm that png icons do in fact scale, so that may not be the issue.

My version is png.iconmodule 53.1 (26/08/2008)

@RibDevil
Can you verify that you have the file libs:IconModules/png.iconmodule and it's the above version?

Re: Scaling Icons

Posted: Sat Apr 29, 2017 8:42 pm
by Ribdevil
Yes, I have the png.iconmodule.
It's the same version.
Scaling works well in my old Sam 44o Flex.

I reduce to scaling a 32x32, and don't work, it's not a png icons fault. tested in Sys ( original OS4.1 icons) and don't scale.
I found one problem more, I can display png pictures, in opus 4, and other viewers, except Fastview and Picture Viewer ( both from Enhancer pack). This gime me a DSI error.
Tomorrow make more test and publish the log.

:(

Virginio

Re: Scaling Icons

Posted: Sun Apr 30, 2017 12:38 pm
by Ribdevil
Well.
I make a new fresh OS4,1 install in a new partition.
After that, the scaling icons works fine. The PNG icons shows like a PNG images.
Copy PNGiconmodule and the correct png1.2 so library.
PNG icons now shows well and scaling works. So the problem is in a later installation. I think it goes for the Enhanced Pack, I will install it in the new partition and comment you.
Thanks for the help.

Virginio