Urbano's Blog

Words from Alejandro U. Alvarez

RSS Feeds

  • Home
  • About me
  • Contact me
  • Plugins
    • Custom Fonts WordPress Plugin (v 5)
    • Nospam (v.1)
  • Advertise on Urbano’s Blog
  • Subscribe!

Image formats review

Apr 29th

Posted by alex in Cool pics

1 comment

For all of you designers out there that don't understand exactly what is the difference in "lay" terms of the most common web image formats I will go on with a little explanation and examples for you:
The background is a PNG image that is always the same, and the images are set over it

PNG

This is a relatively new file format, it stands for Portable Network Graphics, and it's primary characteristic is that it has lossless data compression, meaning that it won't lose any quality whatsoever.
And the other greatest thing about it is that it has full alpha support, meaning that it can have different opacities and transparencies.
Here are below some examples of PNG images with different backgrounds:

Dice in PNG format
Dice in PNG format
Dice in PNG format
Dice in PNG format

The size of the PNG file on top (100x50px in a row of 4) is of 12,4Kb
As you can see it can be perfectly seen even though the background is changed (stripes, solid color, alpha transparencies bg, and transparent bg)

GIF

GIF image format is probably the most common one in the web, or at least it has been for the past years. It stands for Graphics Interchange Format, and it has 3 characteristics that make it unique and sometimes useful:

  • It has lossless data compression (Pretty much like PNG)
  • It supports animations, although they increase a lot file size
  • It supports transparencies, although it doesn't support alpha opacities.

Here is the same demonstration as before, but now with GIF graphics on top:

Dice in GIF format
Dice in GIF format
Dice in GIF format
Dice in GIF format

In order to look good GIF images with transparency often use a surrounding border, that should match the background color. As you see in the example the image looks just great when displayed over white, but when displayed over other types of background colors the transparency looks awful.

A great advantage though is that this GIF image weights 4,04Kb, against the 12Kb of the PNG file...

JPEG

JPEG stands for "Joint Photographic Experts Group" and it is not the actual name of the format, it is the name of the comitee that created it, but since everyone decided to call it this way, lets stick to it ;)

JPEG offers some characteristics that are worth looking at when designing for web, it uses lossy compression, which basically means that when saved it will lose quality.
Depending on its use this may not be bad. For example in this site's design I've used JPEG files for backgrounds, since the quality loss contributes to the "rustic" effect, but it should never be used for logos or sharp things.

The good use for JPEG is for large photographs, big backgrounds, or other large images.
Here is an example of the dice image, using different compression quality:
Since there is no transparency the background will be seen always as white...

High quality:

Dice in JPEG format (High quality)
Dice in JPEG format (High quality)
Dice in JPEG format (High quality)
Dice in JPEG format (High quality)

Medium quality

Dice in JPEG format (Medium quality)
Dice in JPEG format (Medium quality)
Dice in JPEG format (Medium quality)
Dice in JPEG format (Medium quality)

Low quality

Dice in JPEG format (Low quality)
Dice in JPEG format (Low quality)
Dice in JPEG format (Low quality)
Dice in JPEG format (Low quality)

File sizes were:

  • High quality: 31,2Kb
  • Medium quality: 26,2Kb
  • Low quality: 25,0Kb

Conclusion

When designing you should try to use GIFs as many times as possible, since they provide the smallest file sizes, and better quality than most JPEGs. In the cases where you need alpha transparency you should consider changing to PNGs, but avoid their use, they'll increase a lot page load time...

Have fun designing ;)

best, format, gif, image, optimization, png, web design

Reseting CSS default browser settings:

Apr 29th

Posted by alex in CSS

6 comments

One of the biggest problems when designing a website is that after all work is done it looks different on different browsers.
The solution usually used by most web developers consists on manually changing every bit of CSS they have to make it look all the same, resulting on a very hard and time-consuming approach.

A great solution that requires absolutely no extra-work is to reset all CSS settings so that there is absolutely no style assigned to any html elements.
This way you'll have to reapply all styles to all elements, but you'll be sure that once you are done, it looks the same on all browsers.

Here is the CSS code you'll use, developed by David Hellsing at Tripoli:

 
@charset "utf-8";
/* CSS Document */
 
/*
    Tripoli is a generic CSS standard for HTML rendering.
    Copyright ( C ) 2007  David Hellsing
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http ://www.gnu.org/licenses/>.
*/
 
* {
	text-decoration: none;
	font-size: 1em;
	outline: none;
	padding: 0;
	margin: 0;
}
code, kbd, samp, pre, tt, var, textarea,
input, select, isindex, listing, xmp, plaintext {
	white-space: normal;
	font-size: 1em;
	font: inherit;
}
dfn, i, cite, var, address, em {
	font-style: normal;
}
th, b, strong, h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
}
a, img, a img, iframe, form, fieldset,
abbr, acronym, object, applet, table {
	border: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
caption, th, td, center {
	vertical-align: top;
	text-align: left;
}
body {
	background: white;
	line-height: 1;
	color: black;
}
q {
	quotes: "" "";
}
ul, ol, dir, menu {
	list-style: none;
}
sub, sup {
	vertical-align: baseline;
}
a {
	color: inherit;
}
hr {
	display: none;
}
font {
	color: inherit !important;
	font: inherit !important;
	color: inherit !important; /* editor's note: necessary? */
}
marquee {
	overflow: inherit !important;
}
blink {
	text-decoration: none;
}
nobr {
	white-space: normal;
}
 

Note that this is just one option, you can find a lot more on this article, down at perishablepress.com

I've been using it in all my websites and I have to say that it really cuts down on developing time. And the results in IE are astounding, I've had to tweak no more than two lines to get it look perfect.
It will reset all margins, colors, underlines, bullet styles...
Remember to place it BEFORE your custom styling, because if not it will override any new setting you have!
The version placed here is "condensed" and hard to read, but taking into account it's purpose I consider this to be a benefit, since it will decrease page size and thus load time...

Try it, test it, and comment here what you think of it!

css, david hellsing, ie, layout, reset, style sheet, styling

Best free hosting site and forum

Apr 27th

Posted by alex in General talk

1 comment

After having been a member of the frihost.com forum for more than two years, and having posted more than 500 posts I can say and justify that it is absolutely the best web development forum out there.
First of all you'll be given the opportunity to get your own free web hosting with them, the requirements are 10 quality posts and being active in the forums.
The web hosting features are:

  • 250 Mb of space for your entire collection of websites.
  • 10 GB of traffic each and every month.
  • 1 short free subdomain to be reachable in the whole world (you.frih.net).
  • Php and Perl scripting languages to fulfill all your programming needs.
  • The DirectAdmin control panel to manage your web hosting account.
  • No forced advertisements. Your own ads like google adsense are allowed.
  • Unlimited MySQL databases for all your data.
  • Unlimited subdomains and ftp accounts of all your domains.
  • Unlimited email accounts for your correspondence.
  • Unlimited parked and addon domains for your whole portfolio of websites.

Now only this would have been enough for most web developers who are in need for a wed host. In addition to this there is the frihost forum community, which is the main reason they are able to give out all those goodies ;)

There are over 500000 active members (inactive ones are deleted after a set period of time), at the moment of writing there were 733858 articles in the forum, most of which are about web development and gaming... :D

A question posted in the webdev categories in the forum usually takes one day to be answered. If you have a code that doesn't work, you could post the whole thing there and I assure you that in less than two days someone has read your whole code, found the error and optimized it to work best...

Seriously, if I'm making this review is only because I feel in complete debt with that forum, which has always helped me with programming problems along the way, some members have given me their feedback on this blog's design, and I of course have tried to always answer any question posted on the forum, and today I am sharing with the whole world this great site.

http://www.frihost.com
Enjoy,
Alex

forum, free, frihost, review

New version of the nifty corners script

Apr 25th

Posted by alex in CSS

1 comment

I'm sure you've heard of the Nifty Corners js script to create very cool rounded corners, and some of you might even have used it, well there is a new version:
Nifty Corners Cube

It improves most flaws of the first version, plus it adds new features and functionalities. This is the new stuff:

  • The numbers of parameters has been reduced from four of the first version and five of the second version to just two, of which one is optional.
  • It's not necessary specify the colors anymore, since they are detected automatically.
    They're easier to integrate into the design process, since the padding (both horizontal and vertical) of elements to round is preserved
  • It's easier to use them with other scripts
  • The support of CSS selectors has been improved and expanded
  • Just a single line in the head section is now needed for the whole library: even if they're still based on both CSS and javascript, the presentational CSS for Nifty Corners is loaded automatically by js
  • They're now released under GPL licence.

So go on, download it and test it, and tell us how it went ;)

corners, javascript, nify corners, rounded

Best wp plugins for administrators

Apr 24th

Posted by alex in Web-related

4 comments

As some of you might know, I've just "upgraded" my design, now it is completely different... Hope you like it ;)
And in the process I came along with many great plugins that really made my life easier in this task, so I'll post a compilation not only of those, but of the best administration plugins at the moment:

  • Design:
    • Admin Drop Down - This is really something you need.
    • Gravatar - Easily include Gravatars in your theme's comments page.
    • Smilies themer - Change the default WP smilies from a wide range of themes
    • WP PDA or iPhone - Change your CSS style sheets for PDAs and other portable devices.
  • Maintenance/Upgrading
    • Maintenance mode - Put a splash page for all visitors except administrators. Great for testing new stuff.
    • WP Automatic Upgrade - Backup and Upgrade your wordpress version automatically.
    • Theme tester - Test your new themes without users noticing.
    • Role Manager - Edit the capabilities of each wp role (Admin, editor, author or suscriber) or even add new roles.
  • Security:
    • WP Security Scan - This great plugin checks for various vulnerabilities and either fixes them or tells you how to DIY.
  • Stats/Counters
    • StatPress - For me the best wp statistics plugin.
    • Download counter - Tired of not knowing if people really download your stuff? You'll love this plugin if that was the case...
    • Google Analyticator - If you want to stick with good old Google Analytics, then this is your plugin.
  • SEO
    • All in one SEO pack - A must-have for any serious blogger.
    • Google XML Sitemaps - Have all your blog automatically converted to an xml sitemap, plus plenty of other features that you'll find great.
  • Comments:
    • Ozh' Absolute Comments - A great plugin to manage your comments, you should really try this to know what you are missing ;)
    • WP Threaded Comments - In addition to Ozh' Absolute Comments this will ease the way you deal with comments, allowing you to reply to messages in threaded mode right from the post itself.
    • Subscribe to comments - Give your visitors the opportunity to suscribe to the comments to get instant notification upon replies.
plugins, WordPress
« First...10«1920212223»...Last »
  • Looking for something?

    • Popular posts
    • Archives
    • Tags
    • Categories
    • General talk (62)
      • Tips (6)
    • Graphic Design (30)
      • Branding (3)
      • Cool pics (5)
      • CSS (17)
      • Icons (2)
      • Photoshop (9)
    • iPhone (4)
    • OS (17)
      • Windows (16)
    • Programming (47)
      • AJAX (1)
      • C++ (8)
      • Javascript (10)
      • PHP (22)
      • XML (2)
    • Reviews (6)
    • Web-related (53)
      • Browsers (4)
      • Facebook (1)
      • Layout/Styling (9)
      • Security (1)
      • SEO (13)
      • Social Bookmarking (1)
      • Traffic building (5)
      • WordPress (10)
        • Plugin development (1)
    • Weird stuff (7)
      • Humor (2)
    ajax application best blog chat class codes control corners cpp css design english Firefox flash google handler ie image iPhone irc javascript jquery language photoshop php play plugins post redesign remote rotate rounded seo spanish tabs time top tutorial ui upload url web Windows WordPress
    • June 2010 (1)
    • May 2010 (6)
    • April 2010 (3)
    • March 2010 (11)
    • February 2010 (1)
    • January 2010 (2)
    • November 2009 (3)
    • October 2009 (3)
    • September 2009 (3)
    • August 2009 (2)
    • July 2009 (1)
    • June 2009 (3)
    • February 2009 (3)
    • January 2009 (3)
    • December 2008 (1)
    • November 2008 (7)
    • September 2008 (11)
    • August 2008 (7)
    • July 2008 (1)
    • June 2008 (10)
    • May 2008 (18)
    • April 2008 (25)
    • March 2008 (17)
    • PHP logging class v. 1.2 (25)
    • Bad words list (458 words) (20)
    • Best unobtrusive anti-spam technique (Not CAPTCHA) (19)
    • Country lists in most popular languages (14)
    • Did you mean… ? In php (13)
    • Best Photoshop brushes for web designers (12)
    • Quantum Universe Simulation – The Unique beings paradox (12)
    • Use Firefox to spell check your website (10)
    • sIFR – Use custom fonts in your website safely (8)
    • Creating an IRC bot in PHP from scratch (7)
  • Receive notifications!

    Your email:

     

  • About me

    I am Alex, a software and communications engeneering student. I currently live in the north of Spain.

    For the past years I have been working on software and application development, as well as sharing tips and tricks I find useful.

    Go to my homepage for more information ;)

© Alejandro U. Alvarez • All rights reserved
RSS Feeds XHTML 1.1 Top