-
Notifications
You must be signed in to change notification settings - Fork 0
Load home image on the base folder when creating a report from a directory #152
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
Conversation
… exist when creating a report from a directory A Enum for ImageFormats was also created on the report.py script
| Path to the 'home_image' image file as a string if found, otherwise an | ||
| empty string. | ||
| """ | ||
| for image_format in r.ImageFormat: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this will return the first one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, but an Enum is iterable, isn't it? So, inside a for-loop should return all the components, or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I should got this wrong. So the file will need to called home_image.jpg or alike?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly, bc if we allow any image, it will also add it into the default section created for components at the section level
enryH
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what exactly happens if there are two version of the same image, but let's say it's a detail for now.
Following the discussion on #146, I added code to look for a home image in the base folder and load it if exist, when creating a report from a directory.
A Enum for ImageFormats was also created in the report.py script