background preloader

ImgAreaSelect - jQuery plugin

ImgAreaSelect - jQuery plugin
imgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr). Plugin features: Highly configurable Customizable with CSS styling Handles scaled images Keyboard support for moving and resizing the selection Supports callback functions Provides API functions for easier integration with other application components Lightweight — the packed version is just 8KB The plugin works in all major browsers, including Firefox 2+, Opera 9.5+, Google Chrome, Safari 3+, and Internet Explorer 6+. Live Example Click and drag on the image to select an area. Selection Preview » See more examples Quick Usage Instructions Download the plugin, unzip it, and copy the JavaScript and CSS files to your website/application directory. <head> ... Then, to enable selection on an image, wrap it in a jQuery object and call the imgAreaSelect() method: Related:  Utilidades JavaScript

Using imgAreaSelect and GD library to crop and create thumbnails I have recently been using a jQuery plugin called imgAreaSelect, which allows you to crop images. I wanted to use it with my PHP site so that thumbnails could be cropped and created. GD Library is a PHP library that allows manipulation of images, in particular it can create new images. It may need to be installed on some servers, but I found it already installed on my host and on MAMP (my local server). Combining this with imgAreaSelect and we can feed the coordinates that are cropped to create the new thumbnail. So here’s how Firstly, attach all the jQuery and plugin scripts in the head tags: Now still in the head tags, the plugin needs to be called, here I am pointing it to an image with an id of ‘crop’. The other thing I have done here is called a function named ‘preview’ onInit (on initialisation, when the plugin is first loaded) and onSelectChange (whenever the crop area is changed). If doing this preview function, you need to give it the width and height of the original image.

Comparatif XenServer / Hyper-V / VMware Infrastructure | Virtualisation News par Damien Schmitt Tout d’abord, il convient de vous donner les raisons pour lesquelles j’ai sélectionné ses trois solutions. La principale raison est simple. Ce sont les acteurs les plus crédibles sur le marché de la virtualisation. D’autres solutions sont peut être plus performantes mais n’auront pas la chance de pénétrer dans les datacenters et seront confinées à des marchés de niches ou aux universités. Introduction Pour que ce dossier présente un interêt, j’ai fais le choix d’intégrer l’hyperviseur de Microsoft dans ce comparatif car cet éditeur, bien que proposant un outil qui n’est toujours pas terminé, prendra peut être bientôt une place importante dans quelques mois. Microsoft Hyper-V (RC1) couplé à Microsoft System Center Virtual Machine Manager 2008 (beta)Citrix XenServer 4.1VMware Infrastructure 3.5 et VMware VirtualCenter 2.5 Les éditions Il existe plusieurs éditions de ces produits. Hyperviseur Ces trois produits se distinguent tout d’abord par l’hyperviseur sur lesquels ils s’appuient. Réseau

Attribute Starts With Selector in JQuery In this quick article you will learn how to find elements in the DOM that have the specified attribute with a value beginning exactly with a given string. Actually, this problem was asked by one of my friends, Md Ibrahim Rashid, who is from Kolkata at Kolkata Geeks Developer Conference 2012. Let's look at the HTML Markup and a problem: <div> <a id="abc" href="#">Link 1</a><br /> <a id="bdc" href="#">Link 2</a><br /> <a id="acd" href="#">Link 3</a><br /> <a id="cca" href="#">Link 4</a><br /> <a id="adc" href="#">Link 5</a><br /> </div> In the above markups, I have 5 links with id attribute. Now the question is, how to apply the style to the links which has id attribute starts with the character "a"? Look at the jQuery code that will solve our problem. In the above jQuery code, the $('a[id^="a"]') code snippet will select all <a> elements having an "id" attribute beginning with the character "a". Keep in mind, jQuery uses some special characters to find the matching elements, for example:

CSS Display an Image Resized and Cropped PHP & jQuery image upload and crop PHP & jQuery image upload and crop v1.1 We are looking for new features to be added to this plugin, please leave your requests in the comments on the following page : JQuery / PHP Upload and Crop – Feature Request Due to popular demand, further updates have been made to this script, to allow upload of JPG, GIFs and PNG images! Same great functionality now even more useful. Please note the old script is still available at PHP & jQuery image upload and crop. If you are not familiar with the concept, it may be worth reading the old article first. You can now upload different types of images, JPG, GIFs and PNGYou can now upload images and have a random file name (this fixes the caching issue some of you have had)The image upload error check has been fixed (thanks to DevWooty) As with the previous script, ensure you have the following: PHP 4 or Higher (It has been tested on Version 5)PHP GD LibraryjQuery ver 1.2.3 or HigherImage Area Select plugin by Michal Wojciechowski 1. 2. 3. 4.

Les clouds d'Amazon et Microsoft à nouveau perturbés Le cloud computing continue de montrer sa fragilité face aux éléments, alors que la foudre a causé des interruptions de service au niveau des datacenters de Microsoft et Amazon à Dublin, en Irlande. Les deux géants avaient déjà subi des pannes récemment aux Etats-Unis, et subissent des critiques sur leur fiabilité. Pour la deuxième fois en quelques semaines, les datacenters de Microsoft BPOS (Business Productivity Online Suite, le prédécesseur d'Office 365) et d'Amazon EC2 (Elastic Compute Cloud) sont tombés en panne. Mais si les premiers problèmes étaient venus des Etats-Unis, que ce soit pour Microsoft en mai ou pour Amazon en avril. Cette fois, selon The Register, ce sont des datacenters européens qui sont touchés, à Dublin précisément. En cause : une panne électrique consécutive à la foudre, tombée sur un transformateur de Dublin. Mise-à-jour : Il semblerait que finalement, la foudre n'ait pas été la cause de la panne dans les datacenters de Microsoft et Amazon.

Moment.js | Home Creating Thumbnails via CSS Written on May 13th, 2007 By Joe Seifi (tags: css, design) 69 comments One of the least used properties in CSS is the Clip property. Clip is part of the visual effects module of CSS 2.1 and its job is to place a visible window on top of an object that is being clipped. It is useful for clipping images and creating thumbnails without having to create additional files. This trick can be used to create square thumbnails, or to create other varieties of thumbnails without actually duplicating files on the server. Here is the rundown. Example Here is a sample image we want to clip: The CSS and HTML look like this: NOTE: The W3C recommendation suggests using commas between the coordinates, however this is broken in Internet Explorer. and the result looks like this: Our class (.clip) sets the clipping region using the TRBL rotation syntax. The other important thing to note is that the clipping class position must be set to absolute for the clip property to work. Removing the clipped areas

Cloud computing Un article de Wikipédia, l'encyclopédie libre. Le cloud computing ou cloud (« nuage » en français) désigne un ensemble de processus qui consiste à utiliser la puissance de calcul et/ou de stockage de serveurs informatiques distants à travers un réseau, généralement Internet. Ces ordinateurs serveurs sont loués à la demande, le plus souvent par tranche d'utilisation selon des critères techniques (puissance, bande passante…) mais également au forfait. Le cloud computing se caractérise par sa grande souplesse d'utilisation : selon le niveau de compétence de l'utilisateur client, il est possible de gérer soi-même son serveur ou de se contenter d'utiliser des applicatifs distants en mode SaaS[1],[2],[3]. Selon la définition du National Institute of Standards and Technology (NIST), le cloud computing est l'accès via un réseau de télécommunications, à la demande et en libre-service, à des ressources informatiques partagées configurables[4]. Principes - le nuage[modifier | modifier le code]

Related: