Open lrafa opened 3 years ago
Can you upload the sticker here?
Can you upload the sticker here?
You mention jpg and png, should it be a vector image, like svg?
You mention jpg and png, should it be a vector image, like svg?
I don't know, you answer me? xD Do stickers need to be vector images? Sounds rather limited. If that's the case, then I'd create a feature request for supporting bitmap stickers.
Yeah, just had a loon into the code, it's an svr renderer that paints the image. The need to be vector came from the idea that it should be scaleable and resizable, you can do that only with vector images.
Yeah, just had a loon into the code, it's an svr renderer that paints the image. The need to be vector came from the idea that it should be scaleable and resizable, you can do that only with vector images.
Yes, but it is not like emojis are meant to be large anyway. A 128x128 image would likely be more than enough for emoji usage. Anyway, it would be nice to give the user the choice (if it looks terrible, well, their fault). Would it be too complicated to use QPixmap instead?
No, I'm not saying that it's not possible, it's just currently not supported because I had this scaling in mind so I went with SVGs. Just switching to Pixmap is not going to work because those cannot scale so we need to figure some clever way for those both to coexist.
New custom stickers can be added, they appear in the toolbar, but they show as a blank rectangle when you try to add them on the image.
Desktop:
Additional context Custom sticker appears in $HOME/.local/ksnip/ksnip. It doesn't matter if it is JPG or PNG. It doesn't matter if it has transparency or not. When running from console, the following message appears:
Warning: Cannot read file '[filepath]', because: Encountered incorrectly encoded content. (line 1)