old mode 100755new mode 100644.. | .. |
---|
203 | 203 | imageHeight, |
---|
204 | 204 | img.proxy.getFormat(), safeCrop); |
---|
205 | 205 | |
---|
206 | | - if(requiresCropOperation(img.proxy, safeCrop)) { |
---|
207 | | - // Crop the image |
---|
208 | | - resultImage = new TaskImage( |
---|
209 | | - exifDerivedRotation, |
---|
210 | | - safeCrop.width(), |
---|
211 | | - safeCrop.height(), |
---|
212 | | - img.proxy.getFormat(), null); |
---|
| 206 | + //if(requiresCropOperation(img.proxy, safeCrop)) { |
---|
| 207 | + // // Crop the image |
---|
| 208 | + // resultImage = new TaskImage( |
---|
| 209 | + // exifDerivedRotation, |
---|
| 210 | + // safeCrop.width(), |
---|
| 211 | + // safeCrop.height(), |
---|
| 212 | + // img.proxy.getFormat(), null); |
---|
213 | 213 | |
---|
214 | | - byte[] croppedResult = decompressCropAndRecompressJpegData( |
---|
215 | | - compressedData.array(), safeCrop, |
---|
216 | | - getJpegCompressionQuality()); |
---|
| 214 | + // byte[] croppedResult = decompressCropAndRecompressJpegData( |
---|
| 215 | + // compressedData.array(), safeCrop, |
---|
| 216 | + // getJpegCompressionQuality()); |
---|
217 | 217 | |
---|
218 | | - compressedData = ByteBuffer.allocate(croppedResult.length); |
---|
219 | | - compressedData.put(ByteBuffer.wrap(croppedResult)); |
---|
220 | | - compressedData.rewind(); |
---|
221 | | - } else { |
---|
222 | | - // Pass-though the JPEG data |
---|
| 218 | + // compressedData = ByteBuffer.allocate(croppedResult.length); |
---|
| 219 | + // compressedData.put(ByteBuffer.wrap(croppedResult)); |
---|
| 220 | + // compressedData.rewind(); |
---|
| 221 | + //} else { |
---|
| 222 | + // // Pass-though the JPEG data |
---|
223 | 223 | resultImage = inputImage; |
---|
224 | | - } |
---|
| 224 | + //} |
---|
225 | 225 | } finally { |
---|
226 | 226 | // Release the image now that you have a usable copy in |
---|
227 | 227 | // local memory |
---|