I'm making an Ajax call which returns me some info including an image path.
I prepare all those informations in my HTML which will be displayed as a kind of popup. I just toggle the visibility of by popup div from hidden to visible.
To set the position of my popup div, I have to calculate depending on the height of the image.
So, I have...
I have a list of 3-item tuples that is the result of list(PIL.Image.getdata()).
How do I do the opposite: build a PIL.Image object from this list?
...
I have a php script which saves the original image, then resizes it - one thumbnail and one larger image for web viewing. This works well except with some images the quality is terrible. It seems to be saved with a very low colour pallet. You can see the result at http://kalpaitch.com/index.php?filter=white - click on the first thumbnail...
After browsing for the images, and selecting them. How can I display a preview of the image in the datagrid? I am able to display the file name, file size, but was unable to display the image. Below are the codes I have written, please note it is not a complete code but just enough to make it understandable. Thanks.
// variables used
va...
Hi,
I'm developing a web app and during the tests I noticed that sometimes browsers don't load all images (like background or some decorative images) on the website. I need to hit the refresh button to to have it fully loaded. This usually happens when the website is visited for the first time.
I suspect that maybe the development serve...
Hi,
i got the following code:
- (id)init {
if (self = [super init]) {
self.title = @"please wait";
UIBarButtonItem *favorite = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"star.png"] style:UIBarButtonItemStylePlain target:self action:@selector(buttonFavoriteClicked:)];
self.navigationItem.rightBarBut...
I'm creating an site which allows users to upload photos. It's a linux server.
I was wondering what would be the best directory structure to to save these images? And is there a limit of number of files a folder can have?
Would it be better to save every photo uploaded by every user to one single folder and have a reference of each i...
Hi,
How to skew the image? So, for example, each corner has CGPoint with it coords - p1, p2, p3, p4. Then, I need to set - p4.x+=50, p4.y+=30. So this corner (p4) should be stretched in 2D perspective and the image should be distorted.
I tried to use CATransform3D, but it seems that it's cannot be done in such way, since it's only ch...
Hi,
is it possible to extract images or convert a video to a sequence of images using the iPhone API? The goal is to play a video using some kind of animation, instead of the builtin video players. The reason for doing this is that I need to playback a video at reduced speed.
FFMpeg is not an option.
Thank you for your time.
...
Is it okay to use PNG images in a website? I haven't really seen them used much so was wondering what the drawbacks are. There must be some as surely everyone would be using them?...
Are they, for example, MSIE and Chrome compliant etc...
...
Hey
I want to, using htaccess, allow hotlinking BUT if someone views an image on my site I want to redirect them to a "hosted" version of the image where I display my navigation etc.
So essentially anyone hotlinking from an external site will not be affected but if someone views the image on my server directly i.e. www.domain.com/image...
Hi, I just went through a bunch of stuff trying to figure out how to get the image to even rotate. That works but now it's clipping and I'm not really sure how to make it stop... I'm using this rotateImage method:
public static Image RotateImage(Image img, float rotationAngle)
{
//create an empty Bitmap image
Bitmap ...
I have a whole bunch of images of illustrations that I would like to crop to a smaller preview size.
The problem is that I want to crop them to show an "interesting" part of the illustration (ie avoid areas of whitespace).
The images typically have a flat color or a subtle gradient for the background. They are mostly vector style artwo...
Here so much about this site so I'll try my luck if you could help me enlighten in my problem.
What would be the best options to handle images in .Net 3.5 framework and SQL Server for a WINAPP that is incorporated with WCF? I need use this images for transactions inside the system.
...
Hi all,
I'm looking for a way to create preview images of SWF files using server-side script, as it's for a web-based application.
Any idea how to do this?
Thanks,
Ryan
...
greetings, im trying to implement an image rollover on a collection of PictureBox (es) that are place in a tablelayoutpanel and one in each table cell.
here is my code:
HomePicBox[picBoxCount].MouseEnter += new System.EventHandler(this.PictureBox_MouseEnter);
HomePicBox[picBoxCount].MouseLeave += new System.EventHandler(this.PictureBo...
hi,
im having an img tag in my html
when click on image javascript function alerts the image src path..
<image src="angel_wall.jpg" onclick="do_some();return false;" />
...
Is there any other way to do animations besides my below code? I'm asking because I'm going to have some pretty intense animations that could get up to 20-30 frames. I'm also wondering if it's possible to play a sound with each frame?
popup.animationImages = [NSArray arrayWithObjects:
[UIImage imageNam...
Hi all,
I've seen this question asked in pieces (just JS or just CSS) on other sites and SO, but I haven't seen a good solid way to do this yet.
My situation is fairly common. I'm using .NET MVC and developing in Visual Studio. I have a Site.Master page and multiple views, each with a content placeholder where I specify my JS and CSS ...
There are some similiar questions posted here, but they are too specific.
When a form has multiple image inputs and the server side uses their names and/or values to distinguish which one was clicked it works perfectly in FF and people often write the whole thing before finding out taht HTML specifies nothing has to be sent and some bro...