How to save as image from a web page


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to save as image from a web page
# 1  
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..
# 2  
Old 03-31-2009
If im understanding you correctly, you just want to automate getting an image from a website?

On linux use a command:
Code:
wget http://www.somedomain.com/someimge.jpg -O /path/to/save/to/simeimage.jpg

Put it in crontab.
# 3  
Old 03-31-2009
It is not that easy. It is not a standard image image...it is a graph that is created using an application.

You can see an example of a flot graph at people.iola.dk/olau/flot/examples/zooming.html
# 4  
Old 03-31-2009
Ok, got ya.

There are plugins for firefox so save a webpage as an image.

try here: https://addons.mozilla.org/en-US/fir...+image&cat=all
# 5  
Old 03-31-2009
Well I could use image capture software, but that means if someone happens to have another window open on top of the window that will be automatically captured then the overlapping window will be captured too...that's why I mentioned that I wanted to use ImageMagik as a last resort (it is also an image capture program). Thank you for your suggestions.
# 6  
Old 03-31-2009
On of the plugins available for firefox can be ran from the command line, I dont remember which plugin it is, its on my computer at home. Then you dont have to worry about that. Just call firefox from command line with the plugin.
# 7  
Old 03-31-2009
If you could find the name of that software that you use, please let me know. I would like to look into it. Right now I run ImageMagik from command line which is nice, but I still get overlap if another window is overlapping the specified window.

I think that Firefox 3 might have the "save image" ctl rt-click feature on linux but I can't seem to install it on my version of linux (I don't have permission to update it). If you run Firefox 3 on linux, do you get the "save image" option?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
Login or Register to Ask a Question