?
Solved

Create image from html

Posted on 2012-03-19
6
Medium Priority
?
373 Views
Last Modified: 2013-11-19
My company has an html document with images that is being sent as a zipped file (images seperate).  Is there a way to convert this html and image files into one image file...jpeg is preferred but I really don't care at this point.  Note this function must run on Solaris.  Thanks in advance.
0
Comment
Question by:kncoughlin
  • 3
5 Comments
 
LVL 81

Assisted Solution

by:arnold
arnold earned 1000 total points
ID: 37739682
What about a PDF?
Html2pdf
Or HTML2ps
Ps2pdf?
0
 
LVL 39

Accepted Solution

by:
BillDL earned 1000 total points
ID: 37758603
kncoughlin

The most important aspect for us to know is WHY you are sending the zip file containing a web page plus the images.

Is this just so that a client can "preview" the general layout and appearance of the web page, or is the intention that the recipient be able to actually use the web page and perhaps integrate it into their own existing site?

If it's just a "preview", then like arnold my choice would be a PDF file.  I have only used "Virtual PDF Printers" in Windows, so I don't know what similar software exists for Solaris.

Internet Explorer has always had a File > Save As > "Web Archive, single file (*.mht)" option, which creates one file which is not dissimilar to how an email message works by embedding the images as data inside the file.
http://en.wikipedia.org/wiki/MHTML
Although the MHTML file format is pretty much a Microsoft thing, I believe that Opera Browser can create and open *.MHT files natively and Google Chrome can read them.  Whether or not Mozilla Firefox can do so without a plugin is something I have not tested.  Even though there could be compatibility issues, this might be something to consider if you are providing someone with what I suppose could be called a "functional preview" in one file.

You referred to sending the web page as one image file, preferably a JPG.  If you are not looking for an automated method, then can't you just take a screenshot and automatically save or paste into an image editor, then scroll down and repeat until you have images that can be overlapped and stitched together into one full and complete image?  Sorry, I'm not familiar with Solaris functionality and what tools you might have available, but a quick google search for "how to capture screenshots in solaris" suggests various methods.  

Other than these possible options, I would just stick with what you are doing and zip up the page and files.
0
 

Author Comment

by:kncoughlin
ID: 38672014
I've requested that this question be deleted for the following reason:

Question never answered adequately.
0
 
LVL 39

Expert Comment

by:BillDL
ID: 38672015
Hello kncoughlin

There was nothing inadequate about the suggestions made by arnold or myself.  The "inadequacy" was the lack of question detail and lack of follow-up information.

1. Screenshot image - Can be viewed natively on every OS I know of.  There are native methods and also plenty applications that enable this.  Taking and saving of screenshots can be done manually or automatically.

2. PDF - A universal format. There are libraries and applications to create PDFs on Solaris, and there are PDF readers for Solaris.

3. MHT - Not as universal.  Opera browser is available for Solaris and can create and open MHT files.

If there are issues with any of these methods that makes it impossible to do what you want, then it would have been good if you had told us those issues so that we could suggest possible alternative methods or concede that it could not be done.
0
 
LVL 39

Expert Comment

by:BillDL
ID: 38675963
Thank you Netminder
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The goal of the tutorial is to teach the user how to remove a natural vignette your photos and how to add vignette to your photos.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question