Skip to content

feat: add max image size#411

Merged
rochacbruno merged 2 commits intorochacbruno:mainfrom
leandrodamascena:feat/add-image-size
Dec 22, 2025
Merged

feat: add max image size#411
rochacbruno merged 2 commits intorochacbruno:mainfrom
leandrodamascena:feat/add-image-size

Conversation

@leandrodamascena
Copy link
Copy Markdown
Contributor

Closes #153

This PR adds a new image_resize module that resizes images when you set this in your config:

extra:
  banner_image_width: 1024
  max_image_width: 800

I wrote most tests with GenAI help, and I'm not sure if they are overkill. I tried to follow project's patterns, but happy to adjust if needed.

@leandrodamascena
Copy link
Copy Markdown
Contributor Author

Opz.. let me reconfigure my IDE to format the files.

@rochacbruno
Copy link
Copy Markdown
Owner

@leandrodamascena you can run

cargo install mask
mask fmt
mask check

@leandrodamascena
Copy link
Copy Markdown
Contributor Author

@leandrodamascena you can run

cargo install mask
mask fmt
mask check

Yeah, I have this in my local but it was missing some settings in my IDE. I like to save and format automatically haha

@rochacbruno rochacbruno merged commit 6c6f12d into rochacbruno:main Dec 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: image resizing

2 participants