CodePen

HTML

            
              %h1 
	Any Image to CSS converter
.container
	.config
		%label Choose Image:
		%input#upload{:type=>"file"}
		%label PixelSize:
		%input#size{:type=>"number",:value=>"1"}
		%label Space:
		%input#space{:type=>"number",:value=>"0"}
		%label Alpha:
		%select#alpha
			%option{:value=>"yes"} Yes
			%option{:value=>"no"} No
		%label Pixel Roundess:
		%input#roundness{:type=>"number",:value=>"0"} 
		.actions
			%button#convert Convert
		.css
			%textarea
	.results
		.pixelsCont
			.pixels
            
          
!
via HTML Inspector

CSS

            
              body{
	background: #fdfdfd;
	font: 12px arial;
}
h1{
	margin: 50px 20%;
	font: 20px arial;
	padding-bottom: 20px;	
	border-bottom: 2px solid  #ddd;
}

.container{
	margin: 50px 20%;
}
.container .results{
	float: left;
	width: 50%;
}

.container .results .pixelsCont{
	margin: 0px 20px;
	height: 300px;
	border: 1px solid #eee;
	background: #f5f5f5;
	overflow: auto;
	padding : 10px;
}

.container .config{
	float: left;
	width: 50%;
}

.container .config label{
	display: inline-block;
	width: 50%;
}

.container .config input,.container .config select{
	width: 50%;
}
.container .config .actions{
	text-align: right;
}
.container .config button{
	padding: 5px 20px;
}

.container .config .css{
	width: 100%;
	height: 200px;
}
.container .config .css textarea{
	width: 100%;
	height:	100%;
	margin: 20px 0px; 
}

.pixels{
	display: inline-block;
	width: 1px;
	height: 1px;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $(function(){
	
	
	converter =   {
			image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAB9CAYAAABqMmsMAAAACXBIWXMAABcSAAAXEgFnn9JSAAABZGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnR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4UYSV+FtQuEdnledIB+U78Xd2Nv9CFMiPeodDgRwP/DzykP5/cBRs/AAAAAElFTkSuQmCC",
			pixels: $('.pixels'),
			space: 0,
			size: 1,
    	alpha: 'yes',
    	roundness: 0,
      toHex: function(num){
        var h = Math.round(num).toString(16);
    return h.length==0? '00': h.length==1? '0'+h : h;
      },
			run: function(){
				var img = new Image();
	    		img.src = this.image;
	    		var canvas = $('<canvas>')[0];
	    		var context = canvas.getContext('2d');
	    		context.drawImage(img, 0, 0);

	    		var shadow = [];
	    		for ( var i = 0; i < img.width; i++) {
	    			for ( var j = 0; j < img.height; j++) {
	    				var data = context.getImageData(i, j, 1, 1).data;
	    				var alpha = data[3]/255;
	    				alpha = Math.round(alpha*100)/100;
	    				var x = i+i*this.space;
	    				var y = j+j*this.space;
              if(this.alpha=='yes'){
	    					shadow.push( x+'px '+y+'px rgba('+data[0]+','+data[1]+','+data[2]+','+alpha+')' );
              }else{
                shadow.push( x+'px '+y+'px #'+this.toHex(data[0])+''+this.toHex(data[1])+''+this.toHex(data[2]) );
              }
	    			}
	    		}
	    		shadow = shadow.join(',');
	    		
	    		this.pixels	
            		.css('border-radius',this.roundness+'px')
            		.css('width',this.size)
	    					.css('height',this.size)
	    					.css('box-shadow', shadow);
	    		$('.css textarea').val('.pixels{\n\
	border-radius: '+this.roundness+';\n\
	display: inline-block;\n\
	width: '+this.size+'px;\n\
	height: '+this.size+'px;\n\
	box-shadow: '+shadow+';\n\
}');
	    		return false;
			}
	};
	
	setTimeout(function(){converter.run()}, 200);
	
	// bind controls to converter object
	$('#upload').change(function(evt) {
		var files = evt.target.files;
		var f = files[0];
		var reader = new FileReader();
		reader.onload = (function(theFile) {
			return function(e) {
				converter.image = e.target.result;
				converter.run();
			};
		})(f);
	    reader.readAsDataURL(f);
	});
	$('#space').change(function(){converter.space = $(this).val();});
	$('#size').change(function(){converter.size = $(this).val();});
	$('#roundness').change(function(){converter.roundness = $(this).val();});
  $('#alpha').change(function(){converter.alpha = $(this).val();});
	$('#convert').click(function(){converter.run()});
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................