Scaling Icons

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
Ribdevil
Posts: 42
Joined: Tue Jun 28, 2011 7:11 pm

Scaling Icons

Post 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.
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Scaling Icons

Post 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.
User avatar
Ribdevil
Posts: 42
Joined: Tue Jun 28, 2011 7:11 pm

Re: Scaling Icons

Post 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
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Scaling Icons

Post 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?
User avatar
Ribdevil
Posts: 42
Joined: Tue Jun 28, 2011 7:11 pm

Re: Scaling Icons

Post 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
User avatar
gazelle
Posts: 102
Joined: Sun Mar 04, 2012 12:49 pm
Location: Frohnleiten, Austria

Re: Scaling Icons

Post 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.
	[...]
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Scaling Icons

Post 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.
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Scaling Icons

Post 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?
User avatar
Ribdevil
Posts: 42
Joined: Tue Jun 28, 2011 7:11 pm

Re: Scaling Icons

Post 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
User avatar
Ribdevil
Posts: 42
Joined: Tue Jun 28, 2011 7:11 pm

Re: Scaling Icons

Post 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
Post Reply