Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to output albums as branches #31

Open
wants to merge 51 commits into
base: master
Choose a base branch
from

Commits on Feb 15, 2021

  1. Add option to output albums as branches

    Adds a .yml option: photos_as_resource_pages
    If set to true, default behaviour will be changed to produce
    - a directory `name` for the album instead of one `name.md` file
    - an `_index.md` for the album inside this directory
    - a `name.md` for every photo inside the same directory
    Key properties of the photos will be saved in the front matter.
    
    This change provides the basis for users who want to use keywords
    to generate automatic collections of pages using Hugo's taxonomy
    and have more finetuned control over the data being used to generate
    the album.
    
    To optimally use this new functionality, the user will need to
    deploy new list templates that repicate the {{< wrap >}} and
    produce the desired output.
    sebastiaan-lampo committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    8f62499 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. Add option to output albums as branches

    Adds a .yml option: generate_branch_bundle
    If set to true, default behaviour will be changed to produce
    - directory `name` for the album instead of one `name.md` file
    - `_index.md` for the album inside this directory
    - `name.md` for every photo inside the same directory
    Key properties of the photos will be saved in the front matter.
    
    This change provides the basis for users who want to use keywords
    to generate automatic collections of pages using Hugo's taxonomy
    and have more finetuned control over the data being used to generate
    the album.
    
    To optimally use this new functionality, the user will need to
    deploy new list templates that repicate the {{< wrap >}} and
    produce the desired output.
    sebastiaan-lampo committed Feb 17, 2021
    Configuration menu
    Copy the full SHA
    be88345 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    128c2d4 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2021

  1. Implement minimal EXIF and IPTC tag support

    Use PIL's TAGS to deal with EXIF. Use
    iptcinfo3 to deal with IPTC tags. Allows to
    use these as fallback options for copyright
    and caption of photos.
    
    As a sample use-case also implements the
    fallback for the photo album to be determined
    from the set of photos in it.
    
    Will not change the default behaviour without
    adding the setting tag_map, exif or iptc to
    the configuration file.
    sebastiaan-lampo committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    2acb76e View commit details
    Browse the repository at this point in the history
  2. Make settings robust for missing parameters

    Returns None instead of raising AttributeError when accessing
    a setting that is not defined.
    sebastiaan-lampo committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    5019c90 View commit details
    Browse the repository at this point in the history
  3. Clean imports, requirements and logging

    Remove unused imports
    Add iptcinfo3 to the project requirements
    Tidy up some wording
    sebastiaan-lampo committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    16cf5b9 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'photo_exif'

    # Conflicts:
    #	docs/README.md
    #	hugophotoswipe/album.py
    sebastiaan-lampo committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    f917a76 View commit details
    Browse the repository at this point in the history
  5. Improve Quality of Life

    Do not overwrite the hps.yml config file after every run.
    
    hps new: quit bitching about existing folders. Now
    specifically checks if the album.yml file already exists
    instead of the folder itself.
    
    _load_albums: Look for nested albums
    
    Switch default logging level to INFO and verbose to DEBUG.
    Replace print() with logging.INFO/WARNING in hps.py
    Include level & function in logging message
    Reduce verbosity of _load_albums
    sebastiaan-lampo committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    78dd59e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c861407 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7664f8a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6526b1a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dbd90f3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2dd1d36 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    738d86a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3e04f9d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b9040b5 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a4cec17 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bab9e3d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5812f58 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2021

  1. Configuration menu
    Copy the full SHA
    330132d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5fe653d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8a6d59f View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2021

  1. Remove mandatory validation of valid image. Album.update() relies on

    Photo() returning an object even if the file has been removed.
    sebastiaan-lampo committed Mar 7, 2021
    Configuration menu
    Copy the full SHA
    0603d61 View commit details
    Browse the repository at this point in the history
  2. Remove mandatory validation of valid image. Album.update() relies on

    Photo() returning an object even if the file has been removed. We moved
    this test to album.update() with a try clause so that the album.photos
    will only ever return actual photos.
    
    Updated the _load_albums() to call new() album when setting enabled
    and the album doesn't exist yet.
    sebastiaan-lampo committed Mar 7, 2021
    Configuration menu
    Copy the full SHA
    7003fc1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b409c88 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2021

  1. Resolve bugs and complexities.

    - Remove exif based copyright from album.py.
      It unnecessarily complicated matters.
    - Remove memory leak in calling PIL.Image.open() by encapsulating
      in a with block.
    sebastiaan-lampo committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    10a0255 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b520289 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8518352 View commit details
    Browse the repository at this point in the history
  4. Encapsulate Image.open in with block in original_image to reduce

    number of simultaneous open files.
    sebastiaan-lampo committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    5db31d7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    823b530 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2022

  1. Implement minimal EXIF and IPTC tag support

    Use PIL's TAGS to deal with EXIF. Use
    iptcinfo3 to deal with IPTC tags. Allows to
    use these as fallback options for copyright
    and caption of photos.
    
    Will not change the default behaviour without
    specifying the setting tag_map, exif or iptc to
    the configuration file.
    sebastiaan-lampo committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    e393a61 View commit details
    Browse the repository at this point in the history
  2. Merge upstream progress

    Ignores local changes (photo_exif & branches) but realignes with upstream improvements.
    sebastiaan-lampo committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    fc6b8e6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #9 from GjjvdBurg/master

    Catch-up to master
    sebastiaan-lampo committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    472b25b View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2022

  1. Implement minimal EXIF and IPTC tag support

    Use PIL's TAGS to deal with EXIF. Use
    iptcinfo3 to deal with IPTC tags. Allows to
    use these as fallback options for copyright
    and caption of photos.
    
    Will not change the default behaviour without
    specifying the setting tag_map, exif or iptc to
    the configuration file.
    sebastiaan-lampo committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    3febea5 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    d3698cf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    25f5ce0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    06f44fd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d3511e1 View commit details
    Browse the repository at this point in the history
  5. Improve error handling for improper tags

    Also add test cases for improperly formatted tags.
    sebastiaan-lampo committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    98a2313 View commit details
    Browse the repository at this point in the history
  6. Remove get_attribute overloader

    Need a more robust solution to extract arbitrary attributes. For now, removing this from this branch.
    sebastiaan-lampo committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    f4f2b42 View commit details
    Browse the repository at this point in the history
  7. Increase log level for iptcinfo to ERROR

    iptcinfo spews many warnings about missing IPTC data, reading before image or decoding error. Most of the time this just seems to mean that the desired tags aren't present.
    sebastiaan-lampo committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    f8059a7 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'photo_exif'

    # Conflicts:
    #	docs/README.md
    #	hugophotoswipe/photo.py
    #	tests/test_photo.py
    sebastiaan-lampo committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    366a6d8 View commit details
    Browse the repository at this point in the history
  9. Add option to output albums as branches

    Adds a .yml option: generate_branch_bundle
    If set to true, default behaviour will be changed to produce
    - directory `name` for the album instead of one `name.md` file
    - `_index.md` for the album inside this directory
    - `name.md` for every photo inside the same directory
    Key properties of the photos will be saved in the front matter.
    
    This change provides the basis for users who want to use keywords
    to generate automatic collections of pages using Hugo's taxonomy
    and have more finetuned control over the data being used to generate
    the album.
    
    To optimally use this new functionality, the user will need to
    deploy new list templates that repicate the {{< wrap >}} and
    produce the desired output.
    
    (cherry picked from commit be88345)
    sebastiaan-lampo committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    b9f9ec4 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. Configuration menu
    Copy the full SHA
    f21963b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98309e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fbeea57 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c68156 View commit details
    Browse the repository at this point in the history
  5. PEP8 compliance

    sebastiaan-lampo committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    a6d8b21 View commit details
    Browse the repository at this point in the history
  6. Fix bug in image rotation code

    Note: Was not detected in test suite because all test images have exif['Orientation'] = None.
    sebastiaan-lampo committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    6bcad51 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    30ce4c2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    098bb6f View commit details
    Browse the repository at this point in the history