color for new image background is behaving weird
See original GitHub issueFirst of all i want to say that Jimp is awesome really its much needed addition to nodejs libs 👍 but i having a little confusion that when i create a new image
var jimp = new Jimp(1200, 600, 0x00FF0000, cb);,
and i want to set image background i had to pass javascript octa numerals i want to ask is there any way to pass color string or hex code? if not then it would be awesome for future releases!
and weird thing is if i try to pass let suppose pink color
as Pink
hex is ffc0cb
i pass 0xFFffc0cb
but its giving me yellowish color!! may be i dont know how it works so its happening so kindly help 😃 thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
Why Placed Color Images Can Appear Inconsistent
You place two images that have identical colors in them… but they look different! This can drive you crazy. While there are a...
Read more >An image and its background become yellow in Windows ...
When you view an image in Windows Photo Gallery in Windows Vista, the color of the image and its background become yellow.
Read more >background-image acting weird - CSS Creator
Hi guys, I have some strange issue with the "background-image" property, ... width: 80%; background-color: lime; display: -webkit-box; ...
Read more >Weird color distortion when using an effect on top of an ...
I later found that if I applied any effect to an element on top of my pink background, the pink changes from "bright...
Read more >Why can't I use background image and color together?
You set the background-color and background-image styles. If the image is smaller than the element, you need to use the background-position ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi.
It’s RGBA, not ARGB, so your code should look like this
If you want to use strings with HEX codes, rgb()/rgba()/hsl()/hsla()/hsv() notations or literals like “crimson”, “gold”, etc. I would suggest using “tinycolor2” module. My helper function looks something like this:
Thank you so much @Iwasawafag i just cant thank u 😃