image-manipulation

Creating a photo collage image as attached using PHP from several images

放肆的年华 提交于 2019-12-09 06:54:50
问题 How can i create a collage from a large number of images as per below using PHP scripts? I am also looking at creating different sizes A0, A1, A2 sized images depending on the number of pictures used in the collage. Thanks 回答1: I suggest using Imagemagick. There are some excellent tutorials on Mikko's blog: http://valokuva.org/?cat=1 Take a look at the Polaroid example, here: http://valokuva.org/?p=37 The Reflection tutorial demonstrates how to create composite images: http://valokuva.org/?p

How to find pixels per inch (PPI) using ImageMagick

拈花ヽ惹草 提交于 2019-12-09 06:38:13
问题 I can get PPI for a JPEG image using the following command: $ identify -format "%w x %h %x x %y" mypic.jpg 1600 x 1200 72 PixelsPerInch x 72 PixelsPerInch However, when I run the same command on PNG format I get Pixels Per Centimeter: $ identify -format "%w x %h %x x %y" mypic.png 1600 x 1200 28.35 PixelsPerCentimeter x 28.35 PixelsPerCentimeter Is there a way to change the command to get Pixels Per Inch (PPI) for PNG format as well or perhaps calculate the PPI based on the pixels per

Best Programming Language for Medical Image Processing [closed]

邮差的信 提交于 2019-12-09 05:55:42
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I am looking to build a medical solution to be used by surgeons to visualize Dicom images in 3D. Also, the software will allow them to perform some segmentation and manipulation to the images. I will probably use the VTK package www.vtk.org/ to assist with this project. Now,

How to change the brightness of an Image

走远了吗. 提交于 2019-12-09 04:50:36
问题 My Question: I want to be able to change the brightness of a resource image and have three instances of it as ImageIcons. One at 50% brightness (so darker), another at 75% brightness (a little brighter), and finally another at 100% brightness (the same as the original image). I also want to preserve transparency. What I've tried: I've searched around and it looks like the best solution is using RescaleOp, but I just can't figure it out. I don't know what the scaleFactor and the offset is all

How to use .svg files in a webpage?

浪子不回头ぞ 提交于 2019-12-09 04:11:43
问题 I want to know how can one actually use a .svg file In a web page? 回答1: See svgweb quickstart and the svgweb project homepage for something that works in all browsers including IE (requires flash plugin). There are many ways to include an existing svg file: <img src="your.svg"/> <object data="your.svg"/> <iframe src="your.svg"/> <embed src="your.svg"/> <div style="background:url(your.svg)">...</div> 回答2: If all you want to do is to place an SVG image such as a logo or static diagram, you just

Resize an image without reading it again from disk?

笑着哭i 提交于 2019-12-09 01:03:28
I need to resize an image based on it's longest side, e.g. longest side - which can be width or height - should be only 100 pixels long. Currently I am using this method: private Image resizeImageByLongestSide(File imageFile, int lengthLongestSide) { String uri ="file:" + imageFile.getAbsolutePath(); Image image = new Image(uri); // raed to determine width/height // read image again for resizing if(image.getWidth() >= image.getHeight()) return new Image(uri, lengthLongestSide, 0, true, false); else return new Image(uri, 0, lengthLongestSide, true, false); } So, first the image has to be read

Python Tesseract can't recognize this font

独自空忆成欢 提交于 2019-12-08 17:05:48
问题 I have this image: I want to read it to a string using python, which I didn't think would be that hard. I came upon tesseract, and then a wrapper for python scripts using tesseract. So I started reading images, and it's done great until I tried to read this one. Am i going to have to train it to read that specific font? Any ideas on what that specific font is? Or is there a better ocr engine I could use with python to get this job done. Edit: Perhaps I could make some sort of vector around

Emulate Photoshop's “Color Overlay” using CSS filters?

…衆ロ難τιáo~ 提交于 2019-12-08 15:40:39
问题 I have an icon which I'd like to change the color of, using CSS. It is in a data-uri'd optimized SVG inlined in the CSS. Normally, this wasn't possible. That's why icon fonts were invented; their main advantage over SVG is being able to recieve color and text-shadow rules from CSS. Well, CSS filters are now capable of doing both things to arbitrary images, and they now work in all Blink, Webkit and Gecko browsers, and can be expected for future IE/Spartan. A text-shadow replacement is easy;

CSS Solution to image rendering

China☆狼群 提交于 2019-12-08 13:17:23
问题 I have an zoomable image in the website. When the image is zoomed out to a large extend it appears very SHARP and ugly. I tried using image-rendering : opimizequality, optimizespeed CSS but did not work. Is there any other way out. Thanks 回答1: According to image-rendering on MDC, image-rendering is currently only supported in Firefox 3.6. A similar property, -ms-interpolation-mode , is available for IE7 and IE8. Other browsers don't seem to have this feature (yet). As latze mentioned, your

Java code to give an image sketch effect[ and other interesting/fun effects] [closed]

此生再无相见时 提交于 2019-12-08 10:43:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm creating an application for which I need to convert color images to pencil sketches, for example see this. answer at Implementing