Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to save as image from a web page Post 302302643 by vincaStar on Tuesday 31st of March 2009 02:00:38 PM
Old 03-31-2009
How to save as image from a web page

I used flot to create a graph and I would like to be able to save/export the graph as an image. In firefox on windows you can just ctl rt-click and you have a save as image feature (which I can automate with js) but...I need this to work on a linux browser. On linux in firefox I can print preview and I see the graph there so, I know that it is possible but I just don't know how to do it.

Bottom line...I need to save an API chart generated on the web as an image (on a linux machine). It is not a standard image format.

Someone else suggested using canvas2image but I don't know how to implement it. My last resort will be a window capture using ImageMagic.

If anyone has some helpful suggestions, I would love to hear about it.Smilie

Last edited by vincaStar; 03-31-2009 at 03:37 PM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

making a web page

Hey im new to unix! I am tryin to create a web page in unix and have done it all but when i try and load it it says permission denied!?> i have chmod a+rx for folder and file to make sure but still permissions wont let me?! any ideas can anyone do a quick run through of how to make a web page... (4 Replies)
Discussion started by: shashora
4 Replies

2. Shell Programming and Scripting

File to web page

Hi all, I am having an XML file. And as per requirement I need to map fields of this file with various field of web page. So how can I use wput command into it ? Regards, gander_ss (3 Replies)
Discussion started by: gander_ss
3 Replies

3. Shell Programming and Scripting

background image not loading in newly thrown html page by shell script

I m trying to throw back html page when a file is found.While throwing back html page, the background image is not coming. I am using Apache server.Please suggest how to resolve... #!/bin/ksh echo -e "Content-type: text/html\n\n" echo "<html><head></head><body background=\"/asc/ppp.jpg\">"... (10 Replies)
Discussion started by: ravi18s
10 Replies

4. AIX

nmon and web page !

nmon and web page ! Is there any way to let nmon be configured with external Web Page and updating the same web page to be graphic monitoring. Pls advice ... (1 Reply)
Discussion started by: Mr.AIX
1 Replies

5. Shell Programming and Scripting

Save page source, including javascript

I need to get the source code of a webpage. I have tried to use wget and curl, but it doesn't show the necessary javascript part of the source. I don't have to execute it, only to view the source. How do I do that? (1 Reply)
Discussion started by: locoroco
1 Replies

6. Shell Programming and Scripting

Open Page and save it using mozilla

HI Guys, I have one command which can open page and i want to save and exit from it. pf@home> mozilla 181.131.193.10/g/report.txt It will open one page now how can i save it. Thanks (1 Reply)
Discussion started by: pareshkp
1 Replies

7. Shell Programming and Scripting

Download dynamic generated image from HTML page

I've an HTML page where the pie chart is generated with google java code with the required input values in UNIX. The HMTL page is generated in UNIX and then when it loads in browser, the code is interpreted thought internet and the pie chart is generated. This is done by the java code in the... (4 Replies)
Discussion started by: Amutha
4 Replies

8. Shell Programming and Scripting

Script to scrape page for and save data

Hi All I would like to get cars DB from this web site link removed , and I am trying to right script to go and parse the web page and save the data for each cars into a file, type of cars, mark, model, but when I look to the source page I found out that the first car type is preselected and the... (3 Replies)
Discussion started by: molwiko
3 Replies
IMAGE2WBMP(3)								 1							     IMAGE2WBMP(3)

image2wbmp - Output image to browser or file

SYNOPSIS
bool image2wbmp (resource $image, [string $filename], [int $threshold]) DESCRIPTION
image2wbmp(3) outputs or save a WBMP version of the given $image. PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $filename - Path to the saved file. If not given, the raw image stream will be output directly. o $threshold - Threshold value, between 0 and 255 (inclusive). RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 image2wbmp(3) example <?php $file = 'php.png'; $image = imagecreatefrompng($file); header('Content-Type: ' . image_type_to_mime_type(IMAGETYPE_WBMP)); image2wbmp($image); // output the stream directly imagedestroy($image); ?> NOTES
Note WBMP support is only available if PHP was compiled against GD-1.8 or later. SEE ALSO
imagewbmp(3). PHP Documentation Group IMAGE2WBMP(3)
All times are GMT -4. The time now is 08:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy