Project

General

Profile

Bug #3693

Toolbar invalid image size with PNG images

Added by Jonathan Kay 4 months ago. Updated 4 months 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

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

History

#1

Updated by Per Amundsen 4 months 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.

Also available in: Atom PDF