i have problem with chrome extension rich notification. My problem is about icon. I'm getting icons from a server. But thesee icon's sizes are 120 * 60 Width: 120 Height: 60
But i need 120 * 120. I tried to change height but failed. So i thought i can change background color. Current icon background color is gray. I need to change it to white or transparent. I searched but i couldnt find. I hope you can help me about resize height or change background color of chrome extension notification icon. Thanks.
There's no such thing in the notifications API .
Use Canvas API ( some examples ) to manually create 120x120 px colored background, combine it with the downsized image and then output it in the notification.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.