I have some customized PNG images in HTML pages. I want to Hyperlink these images in a way that when clicked they should download as a .MSG file. That is, it should give the option of opening in an Outlook email body straight away.
I'm not sure how to go about this. Whether I need to convert the PNG images to MSG files somehow.
Any advice would be appreciated.
As a background, the HTML files are currently heavy on JavaScript that is used to customize the images by the user. The customized images can be saved as a PNG image by the user by right clicking the image and saving. I have avoided 'download' attribute because of its inconsistent support across browsers.
What I want is for the user to be able to load the final customized image to his/her email straight away.
Outlook will not let you run any scripts of navigate in the HTML body of an email. All navigation will be redirected to an external browser.
Related
I am trying to display PDF file on the web without download option and copy option.
Then I found this https://books.google.co.in/books?id=kwBvDwAAQBAJ&printsec=frontcover&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false
Can you tell me how can I achieve this on my website?
What mplungjan said in his comment is correct. Anything that is put on the web can be copied one way or another. It appears that the google site you linked to is just showing an image of each page (see https://books.google.co.in/books/content?id=kwBvDwAAQBAJ&pg=PP1&img=1&zoom=3&hl=en&sig=ACfU3U0s8V3HjcApLeNwIGStMQlzZFaotA) with transparent pixels over each image to make it so you can't right-click to save the image. But it's easy to see what they're doing by viewing the source in the inspector.
If you don't want your users to be able to download the entire file, you could break it up into multiple small files (or images, like google is doing in your link) that would make it a little harder for them to get the files. But you can't really stop them from downloading anything.
I'm writing a Chrome extension where a canvas is modified, and I want to have the option to save the canvas data as an image. Is there any way for me (using JavaScript) to save directly to the file system (ideal) or at least prompt the user with a download menu so they can save it themselves?
There seems to be no way to do this except for these ideas:
Online backend written in PHP or something
An iframe to show the online website which would have the canvas on it
Tell the user to right click and save the canvas image
At work they want to do this to prevent people from downloading images easily from our site. They won't go the disable right click option, so they want to do what Flickr is doing:
http://www.flickr.com/photos/scg/12332332454/sizes/l/
If you right click and try to download that image it downloads the entire html page instead. Can this be done via JS or is it something handled by the server?
I know all this goes against usability and doesn't actually prevent people from ripping off images but it's what the ticket I'm assigned asks for.
I have recently noticed that the file upload image preview on my site is not working. It previously did work. The current state is that the Select Image prompt works, asks you to select a file and, if you submit the form, it actually adds the image into the DB. However, the stats prompting the image preview and interactive buttons (change/remove) do not work.
What makes this problem specifically difficult is that I cannot see any specific javascript errors associated with the file and the plugin file itself loads from the S3 server.
The image previews can be found: https://www.rigsandwagons.com/listings/add/
I have a website which hosts large PDF documents, as well as some other file formats.
How can I open up a download-dialog box in javascript so that the user can save the document to their computer?
PDF always needs download (even for iframe / embed /object ) so do not use those as its then potential double overload on server, once to downlink and show then potentially a second time by the scripting (However if user selects the "save download as" button in viewer the download should be just once)
The answer is display a small image or icon to show the download content, then back that up with
<Img src="cover.png">
something like this:-
<a href="https://africau.edu/images/default/sample.pdf" download="A Sample.pdf"><img src="https://www.freeiconspng.com/uploads/download-pdf-icon-png-icon-29.png" width="128" height="128"><a><br>right click icon to chose download options
note clicking the icon may show a blank page based on browser security, that is normal, hence the suggestion the user uses their discretion.