File tree Expand file tree Collapse file tree 6 files changed +36
-8
lines changed
thumbly-image-info/src/main/java/org/code13k/thumbly/image/info
thumbly-image-processor/src/main/java/org/code13k/thumbly/image/processor Expand file tree Collapse file tree 6 files changed +36
-8
lines changed Original file line number Diff line number Diff line change 11package org .code13k .thumbly .image .info ;
22
3- import com .sun .glass .ui .Size ;
43import org .apache .commons .lang3 .StringUtils ;
54import org .code13k .thumbly .image .info .model .ImageInfo ;
65import org .code13k .thumbly .image .info .model .Operation ;
@@ -69,8 +68,7 @@ private ImageInfo getImageInfo(String filePath) {
6968 if (info .getImageWidth () == 0 || info .getImageHeight () == 0 ) {
7069 return null ;
7170 }
72- Size size = new Size (info .getImageWidth (), info .getImageHeight ());
73- result .setSize (size .width , size .height );
71+ result .setSize (info .getImageWidth (), info .getImageHeight ());
7472 } catch (Exception e ) {
7573 mLogger .error ("Failed to get image size : " + filePath + ", " + result , e );
7674 return null ;
Original file line number Diff line number Diff line change 11package org .code13k .thumbly .image .info .model ;
22
3- import com .sun .glass .ui .Size ;
4-
53public class ImageInfo extends BasicModel {
64 private int orientation = 1 ;
75 private int sizeWidth = 0 ;
Original file line number Diff line number Diff line change 11package org .code13k .thumbly .image .processor ;
22
3- import com .sun .glass .ui .Size ;
43import org .apache .commons .codec .digest .DigestUtils ;
54import org .apache .commons .io .FilenameUtils ;
65import org .apache .commons .lang3 .StringUtils ;
76import org .code13k .thumbly .image .info .CachedImageInfo ;
87import org .code13k .thumbly .image .info .model .ImageInfo ;
98import org .code13k .thumbly .image .processor .model .Command ;
9+ import org .code13k .thumbly .image .processor .model .Size ;
1010import org .slf4j .Logger ;
1111import org .slf4j .LoggerFactory ;
1212
Original file line number Diff line number Diff line change 11package org .code13k .thumbly .image .processor ;
22
3- import com . sun . glass . ui . Size ;
3+
44import org .apache .commons .io .FilenameUtils ;
55import org .code13k .thumbly .image .processor .model .Command ;
66import org .code13k .thumbly .image .processor .model .Operation ;
7+ import org .code13k .thumbly .image .processor .model .Size ;
78import org .im4java .core .ConvertCmd ;
89import org .im4java .core .IMOperation ;
910import org .slf4j .Logger ;
Original file line number Diff line number Diff line change 11package org .code13k .thumbly .image .processor .model ;
22
3- import com .sun .glass .ui .Size ;
43import org .apache .commons .lang3 .EnumUtils ;
54import org .apache .commons .lang3 .StringUtils ;
65import org .apache .commons .lang3 .math .NumberUtils ;
Original file line number Diff line number Diff line change 1+ package org .code13k .thumbly .image .processor .model ;
2+
3+ public class Size extends BasicModel {
4+ public int width ;
5+ public int height ;
6+
7+ public Size (){
8+ this .width = 0 ;
9+ this .height = 0 ;
10+ }
11+
12+ public Size (int w , int h ){
13+ this .width = w ;
14+ this .height = h ;
15+ }
16+
17+ public int getWidth () {
18+ return width ;
19+ }
20+
21+ public void setWidth (int width ) {
22+ this .width = width ;
23+ }
24+
25+ public int getHeight () {
26+ return height ;
27+ }
28+
29+ public void setHeight (int height ) {
30+ this .height = height ;
31+ }
32+ }
You can’t perform that action at this time.
0 commit comments