src/main/java/com/visiansystems/psdcmd/PsdCmd.java
public static void exportImage(String imageName, String imageFile, Layer layer) {
		// Save image into HTML
		if (imageName == null || imageName.isEmpty())
			imageName = "Main Image";
		imageQueue.add("<img class=\"" + imageFile + "\" src=\"img/" + imageFile + ".png\" alt=\"" + imageName + "\">");

		// Append the CSS class
		cssBuffer.append("." + imageFile + "{\n");
		cssBuffer.append("	position: fixed;\n");
		cssBuffer.append("	left:" + layer.getX() + "px;\n");
		cssBuffer.append("	top:" + layer.getY() + "px;\n");
		cssBuffer.append("	zoom: 1;\n");
		double opacity = layer.getAlpha() / 255.0;
		cssBuffer.append("	filter: alpha(opacity=" + opacity * 100.0 + ");\n");
		cssBuffer.append("	opacity: " + opacity + ";\n");
		cssBuffer.append("	width:" + layer.getWidth() + "px;\n");
		cssBuffer.append("	height:" + layer.getHeight() + "px;\n");
		cssBuffer.append("}\n");
	}
/**
	 * exportImage
	 * Create the image entry into HTML file.
	 * @param imageName The image name.
	 * @param imageFile The image file name.
	 * @param layer The layer to export
	 */
exportImage
Create the image entry into HTML file.
@param imageName The image name.
@param imageFile The image file name.
@param layer The layer to export
exportImage Create the image entry into HTML file . @param imageName The image name . @param imageFile The image file name . @param layer The layer to export
public static void exportImage(String imageName, String imageFile, Layer layer) {
		if (imageName == null || imageName.isEmpty())
			imageName = "Main Image";
		imageQueue.add("<img class=\"" + imageFile + "\" src=\"img/" + imageFile + ".png\" alt=\"" + imageName + "\">");
		cssBuffer.append("." + imageFile + "{\n");
		cssBuffer.append("	position: fixed;\n");
		cssBuffer.append("	left:" + layer.getX() + "px;\n");
		cssBuffer.append("	top:" + layer.getY() + "px;\n");
		cssBuffer.append("	zoom: 1;\n");
		double opacity = layer.getAlpha() / 255.0;
		cssBuffer.append("	filter: alpha(opacity=" + opacity * 100.0 + ");\n");
		cssBuffer.append("	opacity: " + opacity + ";\n");
		cssBuffer.append("	width:" + layer.getWidth() + "px;\n");
		cssBuffer.append("	height:" + layer.getHeight() + "px;\n");
		cssBuffer.append("}\n");
	}
public static void exportImage ( String imageName , String imageFile , Layer layer ) { if ( imageName == null || imageName . isEmpty ( ) ) imageName = "Main Image" ; imageQueue . add ( "<img class=\"" + imageFile + "\" src=\"img/" + imageFile + ".png\" alt=\"" + imageName + "\">" ) ; cssBuffer . append ( "." + imageFile + "{\n" ) ; cssBuffer . append ( "	position: fixed;\n" ) ; cssBuffer . append ( "	left:" + layer . getX ( ) + "px;\n" ) ; cssBuffer . append ( "	top:" + layer . getY ( ) + "px;\n" ) ; cssBuffer . append ( "	zoom: 1;\n" ) ; double opacity = layer . getAlpha ( ) / 255.0 ; cssBuffer . append ( "	filter: alpha(opacity=" + opacity * 100.0 + ");\n" ) ; cssBuffer . append ( "	opacity: " + opacity + ";\n" ) ; cssBuffer . append ( "	width:" + layer . getWidth ( ) + "px;\n" ) ; cssBuffer . append ( "	height:" + layer . getHeight ( ) + "px;\n" ) ; cssBuffer . append ( "}\n" ) ; }
exportImage
 Create the image entry into HTML file.
exportImage Create the image entry into HTML file .
// Save image into HTML // Append the CSS class