Is there a way to know how much percentage of one image is already loaded? Kind of a onProgress event for the load? So if I would do something like this
$('<img/>').load(function(){
$(this).appendTo(some div);
})
.error()
.attr('src',some source);
I could have some progress bar indicating how much of the previous load is complete....
Given an photograph uploaded by a user, what is best approach to creating a number various sized thumbnails Using ImageMagick (or GraphicsMagick)? My guess to the steps:
Create a super sample of the image, maintaining original aspect ratio
Apply watermark to super sample
Create the various sized thumbnails using the watermarked super s...
I am trying to create an android app that will let me display images fullscreen with next and previous buttons on top to change between them.
Can anybody point me to some tutorials where i can find instructions on something similar?
If not, what is the best method to use to get the images into the app? I have tried several ways from cr...
A society I belong to have a website which someone who left a few years ago set up. It was done using codeigniter (which was probably rather excessive given that the website is pretty simple.)
The server it is hosted on updated Php recently, which resulted in the website completely breaking. It now simply returns a page full of deprecat...
I'm trying to use OpenCV to find the RGB values of a pixel in an image. so far I've tried the following:
int blue = ((uchar *)(img->imageData + y*img->widthStep))[x*img->nChannels + 0];
int green = ((uchar *)(img->imageData + y*img->widthStep))[x*img->nChannels + 1];
int red = ((uchar *)(img->imageData + y*img->widthStep))[x*img->nChann...
I'm using Uploadify jQuery plugin to upload images to my server. This plugin doesn't show thumbnail after image file is selected and before the file is uploaded. It shows the filename but I need thumbnail next to it. Is there any way to display selected image before its uploaded?
...
I'm trying to text-wrap floating images in LaTeX, using code like the following:
\begin{wrapfigure}{R}{0.5\textwidth}
\begin{center}
\includegraphics{images/image.png}
\caption{This is the caption.}
}
\label{fig:image1}
\end{center}
\end{wrapfigure
This works fine most of the time (creating an image that floats on the right-hand side)...
I have a function in PHP that calls curl to retrieve an image. When I print that to a file and examine it in the browser, the image looks great. When I use "echo" of the curl results as the return value from my PHP script, the browser shows the broken-image icon (see an example of that icon: http://www.artifacting.com/blog/wp-content/u...
Hi guys,
Unsure if this should be on here or serverfault so apologies if I'm wrong.
I just moved my site from one folder to another on my server (what happened was, I was doing an update, which didn't quite work, so I transferred all the old files back). Now all my images on the site are broken.
Does anyone know why this happens? Or...
Can someone help me understand why this is returning false?
if ((move_uploaded_file($_FILES[$field]['tmp_name'], $path))) {
As in, potential causes. I have checked the variables are correct and I have checked permissions on the destination folder which is 777.
Cheers!
For those wanting to see var_dump ($_FILES);
array(1) { ["image"...
This might be more of a philosophical question, but is there a compelling reason to go one way or the other when presenting text above an image:
1. Burn the text into the image on the server side and just show the image on the iphone
or
2. Send the background image and the text separately to the iphone and have the iphone render the t...
I have an Application that runs tests on a customers account in order to judge if their service is working correctly. During the process of running the tests, the application reads each test and checks to see if it passes / fails / etc... It plays a green checkmark / red x on the tabPage itself as an imagekey... the imagekey is assigned...
Hi all,
I have a TabBarController app where the first tabBarItem is a NavigationController...
I assign programmatically an image background to the navController with this code:self.navigationController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"OverviewBg.png"]];
The "OverviewBg.png" image is the exact si...
I have a need of a function/library that can quickly encrypt an image on a low-powered device (cell phone, tablet, etc).
I need to provide a string which can act as a password to encrypt and decrypt the image file.
Ideally, I would like something that retains the image file format and just scrambles the pixels. I have tried prototyping...
I'm using OpenCV to iterate through an image and find the colour of each pixel, here's some of the code I'm using:
IplImage* img = cvLoadImage("c:\\test.png");
int pixels = img->height * img->width;
int channels = img->nChannels;
for (int i = 0; i < pixels*channels; i+= channels)
{
unsigned char red = img->imageData[i + 2];
u...
i have this css code that shows the photos twice, its wierd, is thier a better i can write this, the links are used to vote using jquery? :))
css code:
a.vote_up, a.vote_down {
display:inline-block;
background-repeat:none;
background-position:center;
height:30px;
width:30px;
margin-left:4px;
text-inde...
In VB.Net with Winforms how do I make an image follow the cursor even when it leaves the form? I want to do this during a drag and drop operation. BCL and/or GDI is better for my usecase than P/Invokes.
If you are familiar with PeaZip, it does something of this sort when dragging a file from it's interface.
...
I'm trying to animate (rotate) an image in flex4 but it seems that flex is adding easing to my animation by default. How can I over ride this so my rotate doesn't have any easing.
Here the line of code I'm using
<s:Rotate angleFrom="0" angleTo="1080" duration="10000" autoCenterTransform="true" />
...
I have a word document with numerous images making up a custom border.
Is there a way using PHP that I can programmatically replace all images within that word document with another image?
Cheers.
...
I am developing an activity which has an Image View, a List View and an OK Button.As per the requirement I have the Image View on the Top Left corner of the screen, End button at the bottom of the screen. The List View will have all the description(comments) with respect to the image and should fill the rest of the screen.
How to draw...