DECA-82: Change file name format and path

Metadata

Source
DECA-82
Type
Task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Jonathan Hung
Created
2010-03-23T11:00:03.000-0400
Updated
2012-01-10T09:48:20.993-0500
Versions
  1. 0.3
Fixed Versions
  1. 0.4
Component
  1. Server

Description

Change the image path and filename so that it is not dependent on /testData/capturedImages and the file name should be better named with an appropriate index. (i.e. "Decapod-0001.jpg").

This may be resolved by supporting the Ocropus directory stucture.

Comments

  • Colin Clark commented 2010-06-25T12:48:41.710-0400

    As part of addressing hard-baked paths throughout the server for DECA-113, I moved the location of all captured images into configuration. The default is a directory called "captured-images" inside the server directory, but it can now be configured to any other path location as necessary.

  • Colin Clark commented 2010-06-25T12:49:22.683-0400

    Jon, can you elaborate on the second half of this issue, related to file names? Currently images are saved as "Image01.jpg". Can you be more specific about how you think files should be named, and why?

  • Colin Clark commented 2010-06-25T14:22:13.618-0400

    I spoke to Jonathan in the channel about this issue, and he elaborated:

    jhung: Two issues: 1. The path should be something more logical.
    [1:48pm] jhung: 2. The Image filenames should be expanded to use padded zeroes instead of "Image1.jpg" etc.
    [1:48pm] jhung: The note about the Ocropus directory structure deals with both these issues - file naming and directory structure as it relates to book structure
    ...
    [1:48pm] colinclark: ok, so #1 is fixed
    [1:48pm] colinclark: By default, captured images go into a "captured-images" directory inside the server, but this can be configured to be anywhere
    [1:48pm] colinclark: #2 is basically padding
    [1:48pm] colinclark: How many zeroes do we want?
    [1:49pm] colinclark: 0001 seem about right?
    [1:49pm] jhung: 4 should be sufficient.
    [1:49pm] jhung: 0001 - 9999

  • Colin Clark commented 2010-07-14T00:40:39.467-0400

    This was resolved fully at revision d6b270809a by packaging up all book-related content into a single directory structure and naming all images as specified in the comments on this ticket.