Nova effect action with Photoshop

Here it is an action I used to get something like a nova explosion.
You will never get same results twice.

Nova effect

Nova effect

Download the action and enjoy. It creates a new document.
Give me feeback if you like it (well, even if you dislike it… but you won’t be published)

Photo to impressionist painting action with Photoshop

From Wikipedia: Impressionism was a 19th century art movement that began as a loose association of Paris-based artists who began publicly exhibiting their art in the 1860s. The name of the movement is derived from Claude Monet’s Impression, Sunrise (Impression, soleil levant). Critic Louis Leroy inadvertently coined the term in a satiric review published in Le Charivari.

With this action, you will be able to transform a photo into a impressionist painting like Monet ones.

Before

Before impressionism

After

After impressionism

Download the action and enjoy, don’t forget to give me feedback.

Mouse wheel handler in Javascript

I found this very very interesting script by Adomas Paltanavičius to determine if you are using mousewheel.

It returns a delta value, +1 or -1, according to scroll direction.

Scroll mouse wheel to see delta here.

I am publishing it here, and very soon I will start to use it to code games, form handlers, and so on.

Meanwhile, check the original script.

It needs some improvements due to some strange delta values on some browsers.

HTML:
  1. <script type="text/javascript">
  2. function handle(delta) {
  3.     var s = delta + ": ";
  4.     if (delta <0)
  5.         s += "down";
  6.     else
  7.         s += "up";
  8.     document.getElementById('delta').innerHTML = s;
  9. }
  10.  
  11. function wheel(event){
  12.     var delta = 0;
  13.     if (!event) event = window.event;
  14.     if (event.wheelDelta) {
  15.         delta = event.wheelDelta/120;
  16.         if (window.opera) delta = -delta;
  17.     } else if (event.detail) {
  18.         delta = -event.detail/3;
  19.     }
  20.     if (delta)
  21.         handle(delta);
  22. }
  23.  
  24. /* Initialization code. */
  25. if (window.addEventListener)
  26.     window.addEventListener('DOMMouseScroll', wheel, false);
  27. window.onmousewheel = document.onmousewheel = wheel;
  28.  
  29. <div id="delta">Scroll mouse wheel to see delta here.</div>

Do you have an idea about how to use mouse wheel handling? Let me know, and I will (try to) code it.

Vignette effect action for Photoshop

Again, I am focusing about vignette/sketch creation wiht photoshop.

This action works well only on images with high contrast, and the final effect is quite good, in my opinion.

Before

Before effect

After

After effect

Before

Before effect

After

After effect

Download the action and enjoy... leave me feedback and send me your artworks to be published on the site.

Strip non alphanumeric characters from a string with php

Very simple and useful code, but hard to find in the internet.
You may need it when you code an user authentication script and want to prevent the user to hack it with ascii injection.
I will use regular expressions because it is the quickest way, and we want to be quick (almost) everytime...

PHP:
  1. <?php
  2. $string_to_be_stripped = "Hi, I am a string and I need to be stripped...";
  3. $new_string = ereg_replace("[^A-Za-z0-9]", "", $string_to_be_stripped );
  4. ?>

$new_string content will be: Hi I am a string and I need to be stripped without any coma or stop.

Enjoy.

Enhanced country selection with Css and Javascript

How many times you had to choose your country in a form, with a old, simple popup?

Time to change the way you choose your country (or anything else) with a bit of Css and Javascript.

I am showing the example in a iframe not to mess with WordPress styles.

As you can see, when you move the mouse over the text input, a list with (almost) every world country and flag appears, and when you click on a country, its ISO code is displayed into the text input.
When you move the mouse out of the country list, it closes.

How can it be made? Read more

Enhanced sepia image effect action for Photoshop

I think normal "sepia" effect is too used in Photoshop, so I tried to enhance the effect and I produced an action that works quite well (in my opinion).
Just run on a photo, as usual.

Before

Before enhanced sepia effect

After

Before enhanced sepia effect

Download the action and give me feeback, with some photo you retouched too.

Posts