Skip to content

Support multiple image directories #24

Open

Description

@dannyadair

images refers to filenames inside images_dir which defaults to the relative path "images".
That should just be one special case used by default.

Support configuration of multiple image directories, where a particular image has to specify which of the directories it is from. (support names for easier reference)

EDIT: Bring in pydantic first as per #26

Activity

  1. dannyadair commented on Apr 28, 2025

    @dannyadair
    MemberAuthor

    Will not make it in this time. But next!

    • TODO: allow directories.images to be either a PathSpec or a list of Pathspecs
      an image then can refer to its directory by the same name
    • TODO: change examples from images_dir to use directories.images (breaking change)
  2. dannyadair commented on May 11, 2025

    @dannyadair
    MemberAuthor

    While at, it simplify the settings of an image. You can set anything you like if you use it yourself - settings should only be prescribed for things that are then actually used by pdfbaker. We're setting "type" to "default" if not given, but not actually use it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions