image-generation

Colored boxed with letters a la Gmail

丶灬走出姿态 提交于 2020-01-19 04:47:26
问题 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> 回答1: are generated everytime I open the app or are stored (cached) Little column

Create thumbnail image for PDF in Java

吃可爱长大的小学妹 提交于 2019-12-27 20:18:34
问题 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 moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. 回答1: PDF Renderer is a LGPL licensed pure-java library that makes this as

Create thumbnail image for PDF in Java

匆匆过客 提交于 2019-12-27 20:16:04
问题 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 moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. 回答1: PDF Renderer is a LGPL licensed pure-java library that makes this as

Create thumbnail image for PDF in Java

那年仲夏 提交于 2019-12-27 20:15:34
问题 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 moment, but I believe it doesn't do thumbnail generation. I can use something like Ghostscript on the command line, but I'm hoping to keep my project all-Java if possible. 回答1: PDF Renderer is a LGPL licensed pure-java library that makes this as

Heatmap Generation Library for PHP

天涯浪子 提交于 2019-12-21 17:00:09
问题 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? 回答1: Use fusionTable, refer to here for some sample PHP code. 回答2: 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

Generate image from DOM elements

走远了吗. 提交于 2019-12-19 02:55:10
问题 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 the client can already display these elements just fine, but you want the server to be able to, for example display a preview image around the site?" "Yup, exactly. Just a little preview so they can see what diagram they're opening, and the preview

PHP create image to display email address?

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:13:49
问题 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 回答1: A simple search that you could easily do.... However: (color, font and string not the ones you specified) header("Content-type: image/png");

Are there any composite-avatar scripts that I could steal or take a look at?

夙愿已清 提交于 2019-12-11 08:57:12
问题 In a project I'll be working on soon there will be a need to generate avatars. The generation process will be one of those where the user can select different heads, hairstyles, clothing, etc. Some items will also be unavailable at first and will have to be earned or purchased. I already have a fair idea on how to do this, but since it is a nontrivial amount of code, it would be nice to see working examples of code. Ideally I could just take a script and integrate into my page, but just

PHP Using imagegrabscreen

这一生的挚爱 提交于 2019-12-11 04:35:38
问题 How could I use imagegrabscreen to get a thumbnail image and a full size image of a specific website. I was thinking that I could have an array that I feed the wanted uri's into but I am a bit stuck on how I would set the wxh of the image I need to grab. I also think that I would need a thumbnail class and a fullimage class and call them when required. Any better Ideas? 回答1: Keep in mind that imagaegrabscreen is Windows-only. If you have multiple displays set up, this function will only grab

GD library create image with dynamic text on it

一世执手 提交于 2019-12-10 12:17:24
问题 I want to place text generated dynamically from a sql select, on an image created with GD library. I'm using this to create the image and place some text on it, but I want to place the variable $users with the sql select data into the image: $query = "SELECT id, name FROM users WHERE .... ORDER BY id DESC"; while ($line = mysql_fetch_assoc($query)) { $users .= "<img src='https://www.domain.com/" . $line['id'] . "/photo'/> " . $line['name'] . "<br />"; } function create_image(){ $im =