I'm trying to play with image resizer and I got the following code
if (is_uploaded_file(@$_FILES['ulimage']['tmp_name'])){
$targetfilename = ImageHelper::treatFilename(uniqid() . "_" . $_FILES['ulimage']['name']);
move_uploaded_file($_FILES['ulimage']['tmp_name'], dirname(__FILE__) . "/tmp/" . $_FILES['ulimage']['name']);
...
I working on a utility app. When I run the app in simulator clicking i image at the bottom flips the view in a flash. But when I run the app on iPhone device it behaves abnormally. At times it flips the view in just 1 tap. The other times it does not bother to react even after tapping the image 10 times. I tried with other utility app al...
hello all
im trying to resize bufferdImage in memory in java but to keep the aspect ratio of the image
im have something like this but this is not good
int w = picture.getWidth();
int h = picture.getWidth();
int neww=w;
int newh=h;
int wfactor = w;
in...
I'm working on allowing users to upload profile pictures for my site. The classic example of what I'm trying to avoid is plentyoffish.com where each users image is skewed and looks very ugly:
So, how can I progmatically crop/create standard sized versions of an image without the skewing demonstrated above?
...
Can anyone tell me what is wrong with this? The file is renamed using a time stamp but the extension doesn't get extracted and placed in the new name.
$filenameext = pathinfo($filename, PATHINFO_EXTENSION);
$today = getdate();
$uniqueStr = $today[year];
$uniqueStr .= $today[mon];
$uniqueStr .= $today[wday];
$uni...
Hi, i've been developing for the iphone platform for about 3 weeks now, and I'm trying to set up a frame by frame animation with 16 1000x1000 png images (with transparency) and plan on animating with around 100 later, so first I tried using imageNamed to animate all the images like this
-(IBAction)startClick1:(id)sender
{
clou...
I'm using PHPs imagecreatefromjpeg to load a jpeg from disk and imagejpeg to output that image to the browser. For some reason though, this function is only outputting the image when the server is running on a Windows development box. On our Linux server, its not outputting any data (ie. Content-Length: 0, nothing is displayed).
Are t...
Could someone please give me a Perl example on how to load an image file into a blob in SQLite?
...
I am trying to read in a scanned image and compress it from a DIB in memory into a TIF file. I am using the libtiff library and have found a couple examples online but none of them really do as I need them to. I need to take the image from the DIB and turn it into a B&W image.
Here is the code I have modified from an online example. It ...
I'm trying to save a copied image from the clipboard but it's losing its alpha channel:
Image clipboardImage = Clipboard.GetImage();
string imagePath = Path.GetTempFileName();
clipboardImage.Save(imagePath);
If I copy a 32bit image from PhotoShop or IE/Firefox/Chrome and run the above code, the output loses its alpha channel, instead ...
I hear this term sometimes and am wondering what it is used for?
...
The user would have to press Alt prtScr to save the image to clipboard,
then maybe open word (Ctrl V)and get an path to save it to from the submit form page and save the document?
or is it possable to save the clipboard image directly to disk somehow on a local or iis? that the database can record the path.
remember What I need.
A bug s...
i am sending byte[] (image) through wcf to silverlight, and from silverlight to wcf, everything works well as long as the byte[] (image) is less than 20KB, but when it's bigger, it doesn't work
when i try to save the image uploaded in silverlight and send it to wcf to save it in the DB
i receive: The remote server returned an error: Not...
I need to write a function to imread an image and convert it to grayscale. Is this correct:
function trial()
O = imread('m1.png');
G = rgb2gray(O);
imwrite(G,'s','jpg');
end
or is there a better way to write it?
...
i have a RDLC with a embedded Image taken with a Nikon Coolpix 5600 that raises the following error when i call the Render function.
example image:
http://img140.imageshack.us/img140/4906/dscn1559u.jpg
does somebody know what`s wrong with that image?
tia
The Error:
[ArgumentOutOfRangeException: Nicht negative Zahl erforderlich.
...
I know this is leaning more in the direction of a designer question, but as I am faced with developing something which requires me to crop an image, I thought I would give the question a shot.
This seems like a ridiculous question to ask, but I've look all over the IDE (Expression Blend 2) to try and find a way to crop my image, but I c...
I'm using slimbox2 with rails. To make it work you include some markup as follows:
<a href="resources/images/weight1.jpg" rel="lightbox-a" title="Beautiful, isn't it?">a</a>
<a href="resources/images/example.jpg" rel="lightbox-a" title="Beautiful, isn't it?">a</a>
So I'm wondering, how do you grab the location of the image to place ...
I want to pass an image file name as a parameter from C# to MATLAB. Here's what I have so far:
MATLAB code
function out = trial(im)
O = imread(im);
G = rgb2gray(O);
imwrite(G,'output','jpeg');
out = G;
C# code
private void btn_Browse_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog();
if (openFileDialog...
I have a binary file which stores in the customerPicture column that has Image as a datatype in the CUSTOMERs table.
I have saved an image by using this line of code in LINQ to SQL.
Dim db = new MyCompanyDataContext
Dim newCus = new CUSTOMERs
Dim filebyte As Byte() = fileUploader.FileBytes
Dim fileBinary As New System.Data.Linq.Binary(...
Hello
I load the same image in Flex from different places - and the image always load from server again and again.
Is there any way to load image from browser cache?
Thanks
Vladimir
...