image-manipulation

Image resizing Jquery

倾然丶 夕夏残阳落幕 提交于 2019-12-11 02:54:06
问题 I have horizontal set of 4 images. The resize function works on mouseover event. This means that if I move the mouse very fast or slow over these images they will All resize. Because of this I need the user to keep the mouse over for at least 1.5 sec over a given image and then proceed with the resize. This is the unproper code: $('a img').mouseover(function(){ $(this).delay(1500).animate({ width: "315px", height: "225px", marginLeft: "-50px" }, 1500 ); }); $('a img').mouseout(function(){ $

How to extract organized palette from image/video with FFMPEG+Imagemagick?

时光怂恿深爱的人放手 提交于 2019-12-11 01:35:12
问题 I use FFMPEG and Imagemagick to extract the color palette from an image or video with a Windows batch file, :: get current folder name for %%* in (.) do set CurrDirName=%%~nx* :: get current filename for /R %1 %%f in (.) do ( set CurrFileName=%%~nf ) ffmpeg -i "%1" -vf palettegen "_%CurrFileName%_temp_palette.png" convert "_%CurrFileName%_temp_palette.png" -filter point -resize 4200%% "_%CurrFileName%_palette.png" del "_%CurrFileName%_temp_palette.png" This outputs something like, I need this

php manipulating uploaded images/files from the tmp folder before moving to another folder

时光总嘲笑我的痴心妄想 提交于 2019-12-11 01:29:45
问题 I have been manipulating image files after uploading in the usual way like moving the file from the /tmp folder to a preferred folder of the site. Now i want to manipulate images by keeping them in the temp folder and once i have done with it then i want to move it to the preferred folder. What i am trying to do is ... Showing a very simple custom file upload dialog. Select an image and click upload. The form is submitted to an iframe so i can show a progressing bar. The php script will echo

High quality image re-sampling in Mono/C#/ASP.NET

余生颓废 提交于 2019-12-11 00:45:58
问题 I've developed a site that requires high quality resizing of uploaded photos. The site works perfectly under ASP.NET on Windows. This afternoon I tried running it under Mono/Apache/Ubuntu 10.10. To my surprise, it worked - except for the image resampling. It seems the libraries underlying Mono's Graphics/GDI+ implementation don't implement the bi-cubic interpolation mode. (See Mono Ignores Graphics.InterpolationMode? ). So I'm looking for a library that can do high quality image resizing. I'm

How to write PNG files in java using pixel RGB values 0 to 1?

梦想与她 提交于 2019-12-10 22:06:26
问题 I am writing a ray tracer in java and I am trying to figure out how to write my generated image to a PNG file. So far, all the examples I have found demonstrate the use of BufferedImage to create a PNG, but they all use RGB values 0 to 255. In my code I represent each pixel colour value between 0 and 1, so for example magenta is (1, 0, 1). How can I go about writing a PNG with such values? Thanks 回答1: If you multiply your value between 0 and 1 with 255, you'll get a number between 0 and 255.

php adding images to another image, exact positioning

假装没事ソ 提交于 2019-12-10 18:24:45
问题 I have a cool snippet of code that works well, except one thing. The code will take an icon I want to add to an existing picture. I can position it where I want too! Which is exactly what I need to do. However, I'm stuck on one thing, concerning the placement. The code "starting position" (on the main image: navIcons.png) is from the Bottom Right. I have 2 variables: $move_left = 10; & $move_up = 8;. So, the means I can position the icon.png 10px left, and 8px up, from the bottom right corner

iPhone: Clip user-supplied UIImage by a given CGPath

廉价感情. 提交于 2019-12-10 18:13:06
问题 In my iPhone application, I need to let user to clip user-supplied UIImage by given dynamically generated CGPath . All that is outside given (closed) CGPath should be clipped out, and the resulting image should be trimmed by path's bounding rectangle. Image should be clipped with soft border. That is, there should be a soft gradient in the alpha channel on the edge of clipping path, from transparent to opaque pixels. Is there any available solution to achieve described effect? The main

iOS - Some images not showing up in launch screen

随声附和 提交于 2019-12-10 15:56:34
问题 Hi we're having a really frustrating moment with the launch screens (note: NOT launch images). The problem we're having is that some images appear on the launch screen whilst others do not. The images are contained in a UIImageView and have some really simple contraints set up. Here are some screenshots so you understand what we mean: First pic - A really simple avatar image (one color, RBG, Alpha channel) WORKS Second pic - A really simple logotype image (one OR multiple color, RBG, Alpha

DrawImage scales original image

。_饼干妹妹 提交于 2019-12-10 15:55:00
问题 I am stitching several images together vertically and horizontally to create one bigger image (in which the total width and height are the sum of the widths and heights of the individual images) using Bitmap and System.Drawing.Graphics in C#. The size of the individual images are 256 px by 256 px. When I use DrawImage from System.Drawing.Graphics , why do I get a scaled and/or zoomed in version of the original image? Here is the original image: When I retrieve the image programmatically and

Using Imagemagick, how do I crop out the white background?

半腔热情 提交于 2019-12-10 15:54:24
问题 Let's say I have a directory full of flags (200 or so). Each flag has this border... 12px up and down and 1px left and rigtht.... like so: How can I use imagemagick to like... crop every single .PNG image from 64x64 to 60x40 回答1: You have the automatic crop: mogrify -trim flag.png . If it does not do the exact magic you want, use crop: mogrify -crop 60x40+2+12 flag.png (That is 2 pixels left). 来源: https://stackoverflow.com/questions/14098965/using-imagemagick-how-do-i-crop-out-the-white