href image link download on click

I generate normal links like: <a href=”https://stackoverflow.com/path/to/image”><img src=”https://stackoverflow.com/path/to/image” /></a> in a web app. When I click on the link, it displays the picture in a new page. If you want to save the picture, then you need to right click on it and select “save as” I don’t want this behaviour, I would like to … Read more

How to resize an image with OpenCV2.0 and Python2.6

I want to use OpenCV2.0 and Python2.6 to show resized images. I used and adopted this example but unfortunately, this code is for OpenCV2.1 and does not seem to be working on 2.0. Here my code: import os, glob import cv ulpath = “exampleshq/” for infile in glob.glob( os.path.join(ulpath, “*.jpg”) ): im = cv.LoadImage(infile) thumbnail … Read more