image-generation

PHP create image to display email address?

那年仲夏 提交于 2019-12-06 08:15:46
Using PHP: How can I create an image to display an email address (to help reduce spam)? Meaning, if I want to display "joe@example.com" on my web page, since crawlers can easily find that text - I want to display the email address as an image that says "joe@example.com". How do I do that? I want the font to be: color: #20c font: 11px normal tahoma A simple search that you could easily do.... However: (color, font and string not the ones you specified) header("Content-type: image/png"); $im = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream"); $background_color =

Generate dynamic flow-chart

ⅰ亾dé卋堺 提交于 2019-12-04 12:07:30
问题 We are looking for some code/component that can create a flow-chart (image) dynamically , preferably in .NET/C# (although a Silverlight/Flash-component that takes a XML/JSON-feed will also be fine). For example we have a (business) quote that goes through te following steps before it becomes final: Requested -> Pending -> Ready for revision -> Under revision -> Final And as an extra step there is the possibility to go from 'Under revision' back to 'Pending'. So the component/code should draw

Heatmap Generation Library for PHP

时光毁灭记忆、已成空白 提交于 2019-12-04 08:55:01
I want to generate heatmap images as overlay for Google Maps. I am searching for a PHP library which can take multiple dimensions into account when generating the image. Let's say i have 2 dimensions: density and quality. How could a heatmap be generated from this input? Use fusionTable , refer to here for some sample PHP code. If you want to generate heatmap layers over google maps you probably want to check out heatmap.js too, it's licensed under the MIT license. It works with the HTML5 Canvas element and JavaScript. This is an old question, but if someone stumbles upon it you might want to

Generate dynamic flow-chart

做~自己de王妃 提交于 2019-12-03 07:31:43
We are looking for some code/component that can create a flow-chart (image) dynamically , preferably in .NET/C# (although a Silverlight/Flash-component that takes a XML/JSON-feed will also be fine). For example we have a (business) quote that goes through te following steps before it becomes final: Requested -> Pending -> Ready for revision -> Under revision -> Final And as an extra step there is the possibility to go from 'Under revision' back to 'Pending'. So the component/code should draw something like this (where 'Under revision' would be the active status for this quote): Example chart

How to respond_to PNG or JPG in Rails and generate image from HTML?

做~自己de王妃 提交于 2019-12-03 05:15:38
问题 I am looking for a gem or solution to generate image in controller response. It would be nice if it's possible to do in controller like that: respond_to :html, :png def show ... respond_to do |format| format.html format.png { ??? } # some html to png converter end end When the png format is requested the response handles with template: #show.png.haml %h1 Some title %p Some content The result should be an image. I know about pdf generation solutions PDFKit, prawn and am looking for image

How to respond_to PNG or JPG in Rails and generate image from HTML?

纵饮孤独 提交于 2019-12-02 19:39:21
I am looking for a gem or solution to generate image in controller response. It would be nice if it's possible to do in controller like that: respond_to :html, :png def show ... respond_to do |format| format.html format.png { ??? } # some html to png converter end end When the png format is requested the response handles with template: #show.png.haml %h1 Some title %p Some content The result should be an image. I know about pdf generation solutions PDFKit , prawn and am looking for image generation. Does anybody know working solution/example? Any starting point would be very appreciated. Check

Live Thumbnails/Large Image

℡╲_俬逩灬. 提交于 2019-12-02 19:27:34
问题 Is there any way to get a certain thumbnail generated by PHP from a live given URI? I also would want to do this for the live on click image. 回答1: Form what i understand you want to generate thumbnail of a given website via its URL ??? If that is what you want then Website screenshots using PHP would help you I prefer the Pure PHP option if you are using a windows server but if not then you would have to use 3rd party APU like http://www.thumbalizr.com/apitools.php Another method is using

Live Thumbnails/Large Image

依然范特西╮ 提交于 2019-12-02 13:38:36
Is there any way to get a certain thumbnail generated by PHP from a live given URI? I also would want to do this for the live on click image. Baba Form what i understand you want to generate thumbnail of a given website via its URL ??? If that is what you want then Website screenshots using PHP would help you I prefer the Pure PHP option if you are using a windows server but if not then you would have to use 3rd party APU like http://www.thumbalizr.com/apitools.php Another method is using HTML5 Canvas or Converting the site to PDF -> PNG or any image format I hope this information helps Thanks

Get all frames of Video IOS 6

谁都会走 提交于 2019-11-27 21:04:32
问题 I would like to get all frames of a Video in iOS6 into NSArray . I use this code: -(void) getAllImagesFromVideo { imagesArray = [[NSMutableArray alloc] init]; times = [[NSMutableArray alloc] init]; for (Float64 i = 0; i < 15; i += 0.033) // For 25 fps in 15 sec of Video { CMTime time = CMTimeMakeWithSeconds(i, 60); [times addObject:[NSValue valueWithCMTime:time]]; } [imageGenerator generateCGImagesAsynchronouslyForTimes:times completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime

Colored boxed with letters a la Gmail

五迷三道 提交于 2019-11-27 18:33:02
I wondered how they are generated and if they are generated everytime I open the app or are stored (cached). It's just a canvas (programmatically) or they use XML? Something like this, and then programmatically they add the letter: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <size android:width="1px" android:height="1dp"/> <solid android:color="#FFFFF5EE/> </shape> adneal are generated everytime I open the app or are stored (cached) Little column A, little column B. There is a small cache used, but it's not what you're thinking. Each tile can be