Tint image using CSS without overlay

Eventually it will be, using shaders. See the W3C Docs on Filters. At the moment, what is possible for instance is: -webkit-filter: grayscale; /*sepia, hue-rotate, invert….*/ -webkit-filter: brightness(50%); See David Walsh on CSS Filters Stackoverflow: apply a rose tint…: W3C Filter Effects 1.0 Docs – 38.2.5. Other uniform variables: the CSS shaders parameters Update: Adobe … Read more

Merge Image using Javascript

You can use JavaScript to ‘merge’ them into one canvas, and convert that canvas to image. var c=document.getElementById(“myCanvas”); var ctx=c.getContext(“2d”); var imageObj1 = new Image(); var imageObj2 = new Image(); imageObj1.src = “1.png” imageObj1.onload = function() { ctx.drawImage(imageObj1, 0, 0, 328, 526); imageObj2.src = “2.png”; imageObj2.onload = function() { ctx.drawImage(imageObj2, 15, 85, 300, 300); var … Read more

Can you combine multiple images into a single one using JavaScript?

I know this is an old question and the OP found a workaround solution, but this will work if the images and canvas are already part of the HTML page. <img id=”img1″ src=”https://stackoverflow.com/questions/158750/imgfile1.png”> <img id=”img2″ src=”https://stackoverflow.com/questions/158750/imgfile2.png”> <canvas id=”canvas”></canvas> <script type=”text/javascript”> var img1 = document.getElementById(‘img1’); var img2 = document.getElementById(‘img2’); var canvas = document.getElementById(‘canvas’); var context = … Read more

resize image on save

I recommend using StdImageField from django-stdimage, it should handle all the dirty work for you. It’s easy to use, you just specify the dimensions of the resized image in the field definition: class MyModel(models.Model): image = StdImageField(upload_to=’path/to/img’, size=(640, 480)) Check out the docs — it can do thumbnails also.

Can I access ImageMagick API with Python?

I would recommend using Wand (explanations follows). I was looking for proper binding to ImageMagick library, that would: work error/problem free be regularly maintained and up to date allow nice objective Python But indeed python API (binding) has too many different (mostly discontinued) versions. After reading a nice historical overview by Benjamin Schweizer it has … Read more