mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin
Filename for imageSuggester influences cropping
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Please fill out these Check-boxes
- I checked for existing similar issues
- I checked that the plugin is up to date
- The issue persists with all other plugins and themes disabled
Plugin Version
1.4.15
This Issue Occurs on
- Windows
- Linux
- macOS
- Android
- iOS
Debug Info
SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.11.7
Operating system: Windows 11 Pro 10.0.26200
Login status: not logged in
Language: en-GB
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: ITS Theme 1.4.07
Snippets enabled: 9
Restricted mode: off
Plugins installed: 39
Plugins enabled: 38
1: Meta Bind v1.4.15
2: Admonition v11.0.0
3: Advanced Tables v0.23.2
4: April Automatic Timelines v0.14.1
5: BRAT v2.2.0
6: Charts v3.9.0
7: Charts View v1.2.8
8: Custom Frames v2.5.0
9: Dataview v0.5.68
10: Default New Tab Page v0.11.9
11: Dice Roller v11.4.2
12: Dnd UI Toolkit v64.0.0-fix-mobile-compatibility-3
13: Excalidraw v2.25.3
14: Excel to Markdown Table v0.4.0
15: Fantasy Statblocks v4.10.3
16: Folder notes v1.8.26
17: Force note view mode v1.2.2
18: Granite v0.1.3
19: HelpMate v1.0.26
20: Image Converter v1.4.4
21: JS Engine v0.3.6
22: Initiative Tracker v13.0.21
23: JSON-CSV Importer v0.38.5
24: Kanban v2.0.51
25: Leaflet v6.0.5
26: Markdown Attributes v1.2.2
27: Maps v0.1.6
28: Modal forms v1.69.0
29: Pixel Banner v3.6.18
30: Second Window v1.2.0
31: Solo RPG Toolkit v0.7.15
32: Style Settings v1.0.9
33: Supercharged Links v0.13.10
34: Templater v2.20.6
35: Text Format v3.1.0
36: TTRPG Tools - Maps v2.1.5
37: TTRPG Tools - Timeline v0.4.3
38: Various Complements v11.4.0
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Describe the Issue
When using imageSuggester to pick an image with a filename that ends in "-portrait", the image is extended to fit the width and cropped on top and bottom.
Image path "z_Assets/NPC Portrait/Eithriel-portrait.jpg" :
Image path "z_Assets/NPC Portrait/Eithriel.jpg" :
Steps to Reproduce
Create new note and add imageSuggester INPUT line.
Choose file that ends in "-portrait.*"
Expected Behavior
I expected the image to be shown in full and the box to be sized to fit the entire image unrelated to filename
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in a new note with an imageSuggester INPUT line, comparing a filename ending in “-portrait” with the same image without that suffix. Trace the imageSuggester rendering and sizing behavior, then verify that the complete image is shown and its container fits the image regardless of filename.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100