Showing posts with label hybris tutorial. Show all posts
Showing posts with label hybris tutorial. Show all posts

Explain use of ImageMagik in Hybris e-commerce multi-channel | Hybris tutorial

About ImageMagik

ImageMagick is an open source software suite for displaying, converting, and editing raster image files. It can read and write over 100 image file formats. ImageMagick is licensed under the Apache 2.0 license.
Use the convert program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
Eg. $magik>convert  hello.jpg hello.png
This command will convert file hello from jpg format to png format.
For more details on imageMagik refer to: http://www.imagemagick.org/script/index.php
We use convert.exe file to execute the conversion from a java path using Runtime.exe or ProcessBuilder:

1.Using Runtime :
 Process p = Runtime.getRuntime().exec("E:/ImageMagick-6.7.0-Q16/convert.exe E:/ImageMagick-6.7.0-Q16/logo.jpg E:/ImageMagick-6.7.0-Q16/logo.gif");

or

2.Using Processbuilder :
ProcessBuilder pb = new ProcessBuilder("E:/ImageMagick-6.7.0-Q16/convert.exe", "E:/ImageMagick-6.7.0-Q16/logo.jpg", "E:/ImageMagick-6.7.0-Q16/logo.gif");
Process start = pb.start();

Here , "E:/ImageMagick-6.7.0-Q16/' is the location of the ImageMagik directory.Location of images can be anything.




How can craete a extension of type Ycommercewebservices ? Ycommercewebservices is not showing in ant extegen command

Basically i want to create a extension of type Ycommercewebservices  but when i giving ant extgen command Ycommercewebservices
extension type is not showing

For that i need to required modify ant extgen command for that follow below steps

1.       Go to Platform extension > extgen


2.       Open project.properties file and add below line for Ycommercewebservices 

extgen.template.list=yempty,springmvcstore,flexstore,storetemplate,ycockpit,fulfilmentprocess,soapspring,jmssample, Ycommercewebservices 

extgen.template.path.jmssample=${HYBRIS_BIN_DIR}/ext-template/ Ycommercewebservices 

Now again try it will work