Questions tagged [image-generation]
111 questions
26
votes
2 answers
Colored boxed with letters a la Gmail
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:

Marcos
- 4,643
- 7
- 33
- 60
24
votes
5 answers
Create thumbnail image for PDF in Java
I'm looking for a Java library that will can take a PDF and create a thumbnail image (PNG) from the first page.
I've already looked at JPedal, but its insane licensing fee is completely prohibitive. I am using iText to manipulate PDF files at the…

Shaggy Frog
- 27,575
- 16
- 91
- 128
16
votes
2 answers
How to convert HTML to image in Node.js
I need to convert an HTML template into an image, on a Node server.
The server will receive the HTML as a string. I tried PhantomJS (using a library called Webshot), but it doesn't work well with flex box and modern CSS. I tried to use Chrome…

niryo
- 1,275
- 4
- 15
- 26
11
votes
1 answer
How to respond_to PNG or JPG in Rails and generate image from HTML?
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 { ??? } #…

Voldy
- 12,829
- 8
- 51
- 67
8
votes
8 answers
Generating dynamic thumbnail of a PDF for ASP.NET
I've used a tool from Aspose (Aspose.PDF.kit) to generate a JPG thumbnail on the fly of a PDF for a .NET application. This works great, but what kind of other alternatives are there? Codeproject.com has this tutorial, but it requires you to have…

Anjisan
- 1,789
- 3
- 15
- 26
7
votes
3 answers
How to generate a completely random image?
I'm trying to generate a completely random image of a given size.
Here is what I have so far:

Gricey
- 1,321
- 1
- 18
- 38
7
votes
3 answers
Generate image from DOM elements
Is it possible to generate an image from dom elements (span, div, image, etc.)? I can't use canvas in this case, and it doesn't have to be cross-browser compatible, as long as it works in some browser. :-)
Thanks!
community edit: "So I take it that…

Leticia Meyer
- 73
- 1
- 3
7
votes
1 answer
Best way to convert text/string to image in Node.JS
I want to convert my text string into an image with basic font. I would like to do this on Node server. Are there any libraries that you might have worked with? Any help is greatly appreciated.

spooky
- 1,620
- 1
- 13
- 15
6
votes
4 answers
Generate dynamic flow-chart
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…

WowtaH
- 1,488
- 2
- 11
- 19
5
votes
3 answers
Heatmap Generation Library for PHP
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…

Alp
- 29,274
- 27
- 120
- 198
5
votes
8 answers
How can I generate GIF images in .NET?
Is there a .NET library I can use to programmatically generate my own GIF images?
At a minimum I'd like to build it pixel-by-pixel. Better would be support for text and shapes.
Here's an example of what I'm trying to do. I mocked this up in…

Zack Peterson
- 56,055
- 78
- 209
- 280
5
votes
1 answer
Make the browser pool for an image until available
I have a small http server which generates some images on-the-fly, and the generation process may take some time. After generation, the image is cached indefinetly.
Currently, if a user requests an image which is not cached, the server returns a 202…

moatPylon
- 2,103
- 1
- 15
- 22
4
votes
1 answer
TYPO3: cObj->IMAGE not generating image
I have an extension, where I need to generate thumbnails.
For this, I wrote kind of a wrapper function.
public static function pictureGenerator($file, $title, $size_w, $size_h) {
$cObj = t3lib_div::makeInstance('tslib_cObj');
$imgTSConfig =…

Stefan
- 337
- 6
- 20
3
votes
1 answer
Error in Image generator : Asked to retrieve element 0, but the Sequence has length 0
I'm trying to calculate the True Positive, True Negative, False Positive, False Negative ratios in binary class coloured image classification problem.
I have binary class, faces and backgrounds colour images, and I have to classify them using…

Bilal
- 3,191
- 4
- 21
- 49
3
votes
2 answers
A photo to vector 'scribbled line' algorithm
I would like to build an algorithm that turns a picture into a scribble line that resembles the original picture.
An example would be this:
into this:
The second image is drawn by hand with one stroke.
I am not sure where to begin experiments. My…

Kuba Misiorny
- 131
- 1
- 5