Scaling Icons

A forum for general AmigaOS 4.x support questions that are not platform-specific

Scaling Icons

Postby Ribdevil » Fri Apr 21, 2017 8:32 pm

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
Ribdevil
 
Posts: 32
Joined: Tue Jun 28, 2011 8:11 pm

Re: Scaling Icons

Postby broadblues » Sun Apr 23, 2017 2:54 pm

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
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 480
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Scaling Icons

Postby Ribdevil » Fri Apr 28, 2017 4:33 pm

1.jpeg
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
Ribdevil
 
Posts: 32
Joined: Tue Jun 28, 2011 8:11 pm

Re: Scaling Icons

Postby broadblues » Fri Apr 28, 2017 7:33 pm

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
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 480
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Scaling Icons

Postby Ribdevil » Sat Apr 29, 2017 12:02 am

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
Ribdevil
 
Posts: 32
Joined: Tue Jun 28, 2011 8:11 pm

Re: Scaling Icons

Postby gazelle » Sat Apr 29, 2017 8:32 am

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

Re: Scaling Icons

Postby broadblues » Sat Apr 29, 2017 4:07 pm

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: 480
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Scaling Icons

Postby broadblues » Sat Apr 29, 2017 4:19 pm

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
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 480
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Scaling Icons

Postby Ribdevil » Sat Apr 29, 2017 9:42 pm

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: 32
Joined: Tue Jun 28, 2011 8:11 pm

Re: Scaling Icons

Postby Ribdevil » Sun Apr 30, 2017 1:38 pm

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

Next

Return to General AmigaOS

Who is online

Users browsing this forum: No registered users and 1 guest

cron