Workaround to override Color Thief? - color-thief

Is there anyway, with metadata or a similar workaround to override the color choice that color thief selects?
It's deployed on a site we use but don't manage and cover images require too much fiddling to get it to sample the actual color we want sometimes. Thanks in advance!!

Related

Repeat imageresizer watermark

I would like to repeat a watermark with imageresizer so that the background of an image is seemlessly filled with a background tile.
I don't find a way to so this in the docs. Is that even possible?
No, this feature isn't supported. You could create a plugin that tiles an image on the background pretty easily, though - inherit from BuilderExtension and override PostRenderBackground.
Why not use CSS, though?

Font and colour change throughout the app

I am working on a big demo app in iOS. Now we changing UI for iOS7. i want to reflect font and colour change throughout the app. I want to do it in minimal rework. now i have 15-16 type of font and colour combination which i need to reflect throughout the app.
I know i can create IBOutleCollection. But for each combination creating so many outlet collection is not a good idea.
For ex i have almost 30 customize cell in full app with 3 fix labels and 2-3 extra labels in it. And there are almost 7-8 type of font and colour combination for that 3 fix labels.
This is just an example, count could be more. So creating so many outlet collection does not sound good.
I hope i dont sound stupid.Any Suggestions would be appreciated.
Look into UIAppearance
I suspect your answer is there. Enjoy :)

webite mockup using photoshop

Ive been asked to create a website mock-up using Photoshop, but I'm not sure what size to use for my canvas.
Please could you help me about that? or give me an advice?
This is a hard question as mostly websites are adaptive. From my experience I would say the height doesn't really matter if you allow scrolling, otherways I would take 700px for height. The width should be no more then 1200px.
I'd simply suggest to stick with some grid framework, eg. 960.gs: http://960.gs/
You'll get a PSD grid to fit your design into and also CSS framework which you can use later for website coding.
For a more up to date grid framework I suggest http://unsemantic.com/ since it allows for a responsive grid.

Objective-C: How to implement TextView orphan control

I'm working on an iPad app that does a simple display of text similar to iBooks.
I would like to display ONLY full paragraphs on each screen (ie, no orphan/widows on a page). Similar to iBooks, I want to allow the user to change the font and font size and continue to keep all lines in paragraphs together. The user will be able to page forward and backwards (just like iBooks).
I've been researching this and can't find a solution for this. I would think that someone has already done this code, but it looks like I'm going to have to figure out the point size of the font and calculate the size of the TextView and then count how many characters, etc etc etc.
Does anyone have a suggestion where I might start to do this?
Thanks a bunch!
Look at the NSString UIKit Addition it has methods for calculating how much space the rendering of string in a give font will take.

custom colors in bing maps?

I was looking at http://www.msnbc.msn.com/id/26295161/ns/weather/ and noticed that the flash map is provided by bing and have a custom color scheme. I have a similar need to show maps with a black & white colortheme, is it possible using their api or have they made custom tiles ? (doesnt seem feasible to provide tiles for alls maps on all levels :)
If you are not wedded to Bing maps, you could look into Mapbox, which provide maps based on OpenStreetMap in any style that you desire.
This question is still not answered and even if it's kind of old, I think it matters.
In fact, they're not using different tiles or a custom tile scheme. You can see those in the network inspection tool.
Since they're inside a Flash application, they can easily change the color of the image using filter on image (ColorMatrixFilter) and changing dynamically on the client side the rendered colors.
Well now some years later you can: https://msdn.microsoft.com/en-us/library/mt823636.aspx :-)
(I got here by looking for some sample styles and thought I add the link for anybody else finding this question)
Perhaps a custom tile skinner is that you need: http://rbrundritt.wordpress.com/2009/11/27/bing-maps-custom-tile-skinner/
In this example, the author changes the color of roads using ColorMatrix and ColorMap:
The two key methods used to transform the colors
consist of using ColorMatrix or a ColorMap. By
using a color matrix all the colors on the tile
can be changed within a couple lines of code. Using
a ColorMap allows you to change one color at a
time. This is useful if you only want to change a
few colors on the map.