Package sk.iway.iwcm.common
Class ImageTools
java.lang.Object
sk.iway.iwcm.common.ImageTools
Manipulacia s obrazkami
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
convertCmykToRgb
(String filePath) Skonvertuje fotku do RGB ak je v CMYK, ak je konverzia povolena.static int
static int
static String
ziska prikaz programu Identify (sucast Imagemagick)static String
prikaz mogrify funguje rovnako ako convert ale ma ako parameter iba jednu cestu, prepisuje povodny vstupny subor http://www.imagemagick.org/www/mogrify.htmlstatic boolean
Returns true if fileName is image file (ends with .jpg, png...)static int
resizeImage
(String srcUrl, int width, int height) Resizne obrazok, vrati: 0-vsetko je OK 1-obrazok je uz teraz mensi 2-nepodarilo sa ulozit obrazok 3-nastala neznama chyba 4-obrazok je v nepodporovanom formatestatic int
resizeImage
(IwcmFile imageFile, int width, int height) static int
rotateImage
(String srcUrl, double angle) static int
rotateImage
(IwcmFile imageFile, double angle)
-
Method Details
-
isImage
Returns true if fileName is image file (ends with .jpg, png...)- Parameters:
fileName
-- Returns:
-
resizeImage
-
resizeImage
Resizne obrazok, vrati: 0-vsetko je OK 1-obrazok je uz teraz mensi 2-nepodarilo sa ulozit obrazok 3-nastala neznama chyba 4-obrazok je v nepodporovanom formate- Parameters:
srcUrl
- - url adresa obrazkuwidth
- - sirkaheight
- - vyska- Returns:
-
cropImage
-
cropImage
-
rotateImage
-
rotateImage
-
convertCmykToRgb
Skonvertuje fotku do RGB ak je v CMYK, ak je konverzia povolena.- Parameters:
filePath
-
-
getIdentifyRuntimeFile
ziska prikaz programu Identify (sucast Imagemagick)- Returns:
-
getMogrifyRuntimeFile
prikaz mogrify funguje rovnako ako convert ale ma ako parameter iba jednu cestu, prepisuje povodny vstupny subor http://www.imagemagick.org/www/mogrify.html- Returns:
-