jquery-blend icon indicating copy to clipboard operation
jquery-blend copied to clipboard

@2x support

Open grommas opened this issue 10 years ago • 3 comments

Smart little plugin! I know it's been a while, but is there a possibility for hires support? And is there a way of just using background color instead of rgb adjustment?

Best regards!

bildschirmfoto 2013-10-14 um 10 42 15

grommas avatar Oct 14 '13 08:10 grommas

I'm not sure I know what you mean by background color

farski avatar Oct 14 '13 12:10 farski

sorry, more precisely: background color of the body element. My body area has various states with different background colors (depending on menu selection). So the (multiply) blend should not be generated by an additional rgb value, but through the underlying color (body, container, whatsoever).

But even more important is the hires problem. I already used the width and height for the image — the dimensions are correct, but the content is not.

grommas avatar Oct 14 '13 14:10 grommas

The way the plugin is set up, you start with an image (base layer) and apply an adjustment layer "on top" of that image. The plugin allows you to define that adjustment layer as either another image, or a single color value (which gets applied as a solid against the entire base layer). I guess I'm confused how the background color would fit into that system. It is always going to be behind any other color/image that you are dealing with, so even if you could apply a blend, it would also be the image being applied to the background, not the other way around.

Perhaps you're saying you want the color value of the background to be applied as the adjustment layer? That would be pretty tough to do programmatically, as the background could be a gradient, an image, etc, and capturing the individual pixel values that are behind any given image would be quite tough. If you are just dealing with a single color value, it would be easy to just have the JS that is calling blend() grab that value from the body, or containing element, or wherever you are deriving that value from. Unless I'm still not understanding, there's not much I could do on my end.

As far as the hi-res, I would probably need to see some examples of what the issue is. It's not something I can test out particularly easily.

farski avatar Oct 14 '13 22:10 farski