Project

General

Profile

Actions

Bug #3693

closed

Toolbar invalid image size with PNG images

Added by Jonathan Kay over 6 years ago. Updated over 6 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
08/27/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
Yes

Description

I'm not entirely sure if this is a bug or by design, but I'm submitting it anyway ;)

I have a number of /toolbar commands in my startup script which I haven't changed in a long time. Beginning with 3.0 2017/08/26, the toolbar items using .ICOs are fine, but the ones using .PNGs are not. AdiIRC reports the following for the .PNG toolbar lines:
/toolbar: invalid image size
Note: the PNGs are 16x16. I attached one in case it's helpful.

I see that Feature #3678 added missing parameters from /toolbar to add x y w h, and indeed, I was able to fix the problem by adding those values.
So:
toolbar -a ZNCClose "ZNC all close" "Icons\ZNCclose.png" /closeznc
no longer works, but now becomes:
toolbar -a ZNCClose "ZNC all close" "Icons\ZNCclose.png" 0 0 16 16 /closeznc


Files

ZNCclose.png (689 Bytes) ZNCclose.png Jonathan Kay, 08/27/2017 03:02 PM
Actions #1

Updated by Per Amundsen over 6 years ago

  • Status changed from New to Invalid

Yeah, the [x y w h] is required for the /toolbar command in mirc when using .png or other image files except .ico/.exe/.dll, I learned that recently so the previous behavior was a bug, sorry for the inconvenience.

Actions

Also available in: Atom PDF