~berthold-daum/zora/trunk

« back to all changes in this revision

Viewing changes to com.bdaum.zoom.batch/src/com/bdaum/zoom/batch/internal/ExifTool.java

  • Committer: bdaum
  • Date: 2015-12-26 10:21:51 UTC
  • Revision ID: berthold.daum@bdaum.de-20151226102151-44f1j5113167thb9
VersionĀ 2.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        private static final String[] B_ICCPROFILE = new String[] {
79
79
                        "-b", "-icc_profile" //$NON-NLS-1$ //$NON-NLS-2$
80
80
        };
81
 
        private static final String[] B_FACEDETECTAREA = new String[] {
82
 
                        "-b", "-FaceDetectArea" //$NON-NLS-1$ //$NON-NLS-2$
83
 
        };
84
81
        private static final String[] B_PREVIEWIMAGE_FAST = new String[] { "-b", //$NON-NLS-1$
85
82
                        "-previewimage", "-fast" }; //$NON-NLS-1$ //$NON-NLS-2$
86
83
        private static final String[] E_S_N_FAST_STRUCT = new String[] {
343
340
        public byte[] getBinaryData(String tag, boolean check) {
344
341
                String pvi = check ? getMetadata().get(tag) : ""; //$NON-NLS-1$
345
342
                if (pvi != null) {
346
 
                        String[] parms = new String[] {"-b", "-"+tag.toLowerCase()};
 
343
                        String[] parms = new String[] { "-b", "-" + tag.toLowerCase() }; //$NON-NLS-1$//$NON-NLS-2$
347
344
                        try {
348
 
                                return (byte[]) connectToExifTool(parms,
349
 
                                                true);
 
345
                                return (byte[]) connectToExifTool(parms, true);
350
346
                        } catch (ConversionException e) {
351
 
                                BatchActivator
352
 
                                .getDefault()
353
 
                                .logError(
354
 
                                                NLS.bind(
355
 
                                                                "Internal error fetching binary data for tag {0} in file {1}", tag,
356
 
                                                                file), e);
 
347
                                BatchActivator.getDefault().logError(
 
348
                                                NLS.bind(Messages.ExifTool_errort_fetching_binary_data,
 
349
                                                                tag, file), e);
357
350
                        }
358
351
                }
359
352
                return null;
360
353
        }
361
354
 
362
 
 
363
355
        /*
364
356
         * (non-Javadoc)
365
357
         *
454
446
                this.fast = fast;
455
447
        }
456
448
 
457
 
 
458
449
}