Articles Tagged 'Pictures'

How to set automatic thumbnails of all posts

The new feature of WordPress miniatures, introduced with version 2.9 and discussed in WordPress 2.9 +: new feature post thumbnails , can be automated using a simple PHP script. This can be handy when "you forgot" to include thumbnails of each item or if you want to update the previous.

More ...

WordPress 2.9 +: new feature post thumbnails

With the latest release of WordPress 9.2 + from, we have introduced a new feature very useful to manage thumbnails, or thumbnails. This feature, however, must be activated in the theme, namely, acting on the file functions.php . This new feature is useful in many contexts and provides a simple and convenient tool for both the developer of a website using WordPress is the final customer who will then manage the content.
In versions of WordPress prior to 2.9, in fact, many developers used the custom fields (custom fields) to provide customers the ability to add an image - external - to the post. Solution from the point of view that if the developer was not particularly burdensome, rendeve still editing the post quite inconvenient, especially if we consider that often it is the end customer to treat the content.

More ...

How to locate images and views in Interface Builder

After explaining how to locate our strings in Xcode , as we see now is simple - applying the same technique - to locate and view images / interfaces created with Interface Builder.

Locate graphic resources

The process, as mentioned, is the same, if we have an image already included in our resources, or they insert a new one, and we want to "locate" - that is, managing two or more images based on the languages ​​supported - just click the button Right image ( Adium.png in this example) and select Get Info:

We click Make File Localizable in the lower left.

Click on Add and insert Localization Italian :

In order to obtain:

esattamente come accadeva con il testo: Our image is moved (physically, one of the rare times when that happens nell'alberatura Xcode is reflected on the filesystem) under virtual folders English.lproj and Italian.lproj exactly as happened with the text:

contiene una stessa versione dell'immagine. At this point each of the folders English.lproj and Italian.lproj contains the same version of the image. This image is manipulated within Interface Builder, where we will see - by default - the English version.
At this point, just overwrite one (or both files Adium.png ) to obtain a localization of the images "flash".

Locate the files XIB

Even the interfaces built with Interface Builder can be localized in their entirety, when it is deemed necessary. ) con interfaccia XIB , lo selezioniamo, scegliamo Get Info dal menu contestuale, rendiamo il file localizzabile, aggiungiamo la localizzazione in italiano: The procedure is identical to that performed with the graphical capabilities: add a ViewController (eg infoViewController ) XIB interface, we select it, choose Get Info from the contextual menu, give the file localizable, add localization in Italian:

ViewController

Click on English or Italian will open Interface Builder! ) all'interno della classica cartella Classes . This time, the filesystem, we will notice that you have created two directories ( English.lproj and Italian.lproj ) within the classical Classes folder. Both will have their files infoViewController.xib . The comfort in this, clearly resolved in the code, when we go to instantiate our controller code we will have a "clean" like this:

1
2
[ InfoViewController alloc ] ; InfoViewController * info = [InfoViewController alloc];
info.view ] ; [Self.view addSubview: info.view];

As you can see there is no trace of any statement concerning the location, totally managed by the system. The two interfaces, of course, can be completely different in that they are in all respects as two separate files XIB.

More ...

Firefox 3.5.7: how to fix the defect of the rounded edges of an image

Sometimes you just move an item, changing the point of view, to solve a problem seems insurmountable. And when one has to do with compatibility between browsers and CSS, inventing solutions "spectacular" (stunts would say) is on the agenda. , per Safari e Google Chrome. What I show you an easy way to apply rounded corners to images using -moz-border-radius , which is available for Mozilla FireFox and -webkit-border-radius , Safari and Google Chrome.

More ...

Apple iPhone: Create a custom toggle button

non funzionano quando un UIButton è impostato in modalità UIButtonTypeCustom ! The states UIControlStateSelected or UIControlStateHighlighted do not work when a UIButton mode is set UIButtonTypeCustom ! Or rather, do not work (because reserved for other types of button), for example to create a button with two states: toggle note. If we have created two images (stato1.png and stato2.png) for our button, we can proceed as follows:

1
2
3
/ / The header file that we create a global variable for usaremo
/ / Toggle the check was
BOOL toggleFlag;

Now we create our button:

1
2
3
4
5
6
7
8
9
/ / We create a button and we place it initially in the state "stato1.png"
/ / Edit initWithFrame: (CGRect)} {100,100,50,50 with the position and
/ / Size of your image has
; toggleFlag = YES;
[ [ UIButton buttonWithType : UIButtonTypeCustom ] initWithFrame : ( CGRect ) { 100 , 100 , 50 , 50 } ] ; UIButton ToggleButton * = [[UIButton buttonWithType: UIButtonTypeCustom] initWithFrame: (CGRect) {100, 100, 50, 50}];
@ "" forState : UIControlStateNormal ] ; [ToggleButton setTitle: @ "" forState: UIControlStateNormal];
[ UIImage imageNamed : @ "stato1.png" ] forState : UIControlStateNormal ] ; [ToggleButton setBackgroundImage: [UIImage imageNamed: @ "stato1.png"] forState: UIControlStateNormal];
self action : @selector ( onToggle : ) forControlEvents : UIControlEventTouchUpInside ] ; [ToggleButton AddTarget: self action: @ selector (onToggle:) forControlEvents: UIControlEventTouchUpInside];
toggleButton ] ; [Self.view addSubview: ToggleButton];

When you click on the button will send a message to be managed onToggle :

1
2
3
4
5
6
7
void ) onToggle : ( id ) sender { - (Void) onToggle: (id) sender {
/ / Retrieve pointer to UIButton
( UIButton * ) sender; UIButton ButtonClicked * = (UIButton *) sender;
/ / Executing the Toogle
toggleFlag =! toggleFlag;
[ UIImage imageNamed : ( toggleFlag ) ? @ "stato1.png" : @ "stato2.png" ] forState : UIControlStateNormal ] ; [ButtonClicked setBackgroundImage: [UIImage imageNamed: (toggleFlag)? @ "Stato1.png" @ "stato2.png"] forState: UIControlStateNormal];
}

More ...

Photoshop tutorial: text warp at will

Perhaps not everyone knows about the potential of handling text in Photoshop, in particular the fact that it can manipulate text in ways very advanced. For example if we wanted to "bend" text, we would be tempted to use the "Create Warped Text" Altera testo , Which opens a window with these settings:

Altera testo

More ...

jQuery: round edges on the images to overlap

Because of the different rendering across browsers, Microsoft Internet Explorer definitely see that in mind, we must always resort to tricks to apply special effects that now should be a standard. The award-discussed rounded edges are a classic example of "disaster" produced by the complete inability to make a serious standards on pages render HTML / CSS. , etc… There are many solutions that allow the network to obtain the "effects" (effects which present as exempt from the HTML rounded corners, shadow effects, reflections, etc ...) with patches on the leaves of styles, special tricks using div grafted, libraries Javascript, use of canvas , etc ...
On a purely educational I will illustrate further technique (cross-browser) to apply to the rounded edges of the images:

Demo and source

More ...

Ridimesionamento dynamic intelligent image

Two researchers at Adobe , Dr. Ariel Shamir and Dr. Shai Avidan, have developed a unique algorithm for intelligent resizing of images. Particularly impressive (see video below) is the ability to obscure and completely change an image, thanks to a "resize" extremely sophisticated and selective. In other words, this technique allows you to resize an image in a non-linear. Some areas of the image, then, are kept in scale providing an effect really curious.

More ...

FlickrCash: Flickr in search of better

Jesse Skinner has created FlickrCash , an Ajax application to search, manage and view their photos on Flickr , using jQuery as a driver. This is an interesting example of how a service created by the use of another. Indeed FlickrCash takes data, photos, right from Flickr , despite its own separate login and its environment. As shown in the video below, the navigation is really original, a multitude of images all at once!

More ...


Stop SOPA