Sunday, 7 August 2016

How to create animated GIF in Photoshop

How to use timeline in Photoshop to create Frame Animation 

Step 1 > File - New



Step 2 > File - Open (Upload Image)



Step 3 > Select Window - Timeline



Step 4 > Select Create Frame Animation (From Drop down in Timeline)



Step 5 > click on Create Frame Animation



Step 6 > Click on Duplicate Selected Frames



Step 7 > Click on Select Frame delay time and select the time delay 



Step 8 > Click Tweens animation Frame



Step 9 > Tween Popup add frames select the "Tween With: Dropdown" Next/Previous Frame



Step 10 > Now you will get Frames in your Timeline



Step 11 > Now set your Image.(Select the frame and Move your image (car-img) little Left 



side as img 1-km like this select the frame and set the image little 2nd frame 2-km like 

this set all frame.

Step 12 > Play Animation



Step 13 > See the Animation Here in below image car is in frame 5 and it has covered 4-KM



Step 14 > Now save image ( File - Save for web)



Step 15 > Save as GIF



Step 16 > Now open car.GIF (image) in web Browser you can see the Animated car running in 

road.





Thursday, 4 August 2016

How to create multiple size app icons on single click in photoshop

How to automate exporting multiple PNGs with different sizes from Photoshop

Step 1 > Create .jsx file (as below given or use same code and save as filename.jsf)


Code:-


var inFolder = Folder.selectDialog("Please select folder to process");

if(inFolder !== null) {
  var fileList = inFolder.getFiles(/\.(jpg|tif|psd|png)$/i);
  var outfolderName = prompt('Folder name', 'MultipleIcons');
  var outfolder = new Folder(decodeURI(inFolder) + "/" + outfolderName);

  if (!outfolder.exists) outfolder.create();

  for(var a = 0; a < fileList.length; a++) {
    if(fileList[a] instanceof File) {
      var doc = open(fileList[a]);
      var docname = fileList[a].name.replace(/\.[^\.]+$/, '');
      micons();
      doc.close(SaveOptions.DONOTSAVECHANGES);
    }
  }
}

function micons() {
  var savedRuler = app.preferences.rulerUnits;
  var w = app.activeDocument.width;
  var h = app.activeDocument.height;
  var quality = 50;

  app.preferences.rulerUnits = Units.PIXELS;
  if(w > h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
  if(w < h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
  app.activeDocument.resizeImage('2560px', undefined, undefined, ResampleMethod.BICUBICSHARPER);
  app.preferences.rulerUnits = savedRuler;

  for(var i = 4; i >= 0; i--) {
    var outfolder = new Folder(decodeURI(inFolder) + "/" + outfolderName + "/" + docname + "/TileGroup0");
    if (outfolder.exists === false) outfolder.create();
    var saveFile = new File(decodeURI(outfolder) + "/" + i + "micons.png");
    SavePNG(saveFile, quality);
    app.activeDocument.resizeImage('50%','50%', undefined, ResampleMethod.BICUBICSHARPER);
    quality = quality + 10;
  }
}

function SavePNG(saveFile, quality) {
  var exportOptionsSaveForWeb = new ExportOptionsSaveForWeb();
  exportOptionsSaveForWeb.format = SaveDocumentType.PNG;
  exportOptionsSaveForWeb.includeProfile = false;
  exportOptionsSaveForWeb.interlaced = true;
  exportOptionsSaveForWeb.optimized = true;
  exportOptionsSaveForWeb.quality = quality;

  activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB,exportOptionsSaveForWeb);
}

Step 2 > Place the file in  (C:\Program Files\Adobe\Adobe Photoshop CC 2015\Presets\Scripts)
for windows OS.

Step 3 >  Open Photoshop you will get this Popup Window


Step 4 > Select the Image folder where you place all images which you want to convert in multiple size images.


Step 5 > After select your Image folder, you will get another Popup window where you can give the name of the new created folder.


Step 6 > After click OK automatically it converts your kept All images in folder in different size with their name in folder.



OUTPUT 








Monday, 1 August 2016

How to use fontawesome in Photoshop

Use Font Awesome in Photoshop

1> Download FontAwesome from http://fortawesome.github.io/Font-Awesome/

2> Copy font files from "font-awesome/font" and Paste to your computer font directory

      (For Windows OS: C:\Windows\Fonts)

3> Install the Font


4> Copy font icon from http://fontawesome.io/cheatsheet/



5> Select the Type Tool in Photoshop Application



6> Change the fonts style as Fontawesome




7> Paste the copied font icon in Photoshop Application



8> Give the size and color to that icon (as font)






9> Now your icon is completed as fontawesome Icon