nvim-orgmode / nvim-orgmode/orgmode

How to you set an image's width?

Open
#1,081 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Lua
Stars
3.9k
Forks
190
Avg merge
2d 13h
Merged PRs (30d)
7

Description

Describe the bug

I've been looking through the source and trying to find a way to change an images size on a per embed basis, like is possible with orgmode https://orgmode.org/manual/Images.html
And on snacks side, I just see [[path]] as the test case. Is there no way to do this without tainting global image settings?

checkhealth

==============================================================================
orgmode: ✅

Orgmode ~

  • ✅ OK Treesitter grammar installed (version 2.0.2)
  • ✅ OK Setup called
  • ✅ OK org_agenda_files configured
  • ✅ OK org_default_notes_file configured
Steps to reproduce
  1. Attempt to set an embed width for inline image on a per use case
  2. Cry
Expected behavior

Magical wonders of image width resizing via options

Emacs functionality

https://orgmode.org/manual/Images.html
#+ATTR_HTML

Minimal init.lua

-- Enter your minimal_init.lua here

Screenshots and recordings

No response

nvim-orgmode version

cf75da1

OS / Distro

Cachy

Neovim version/commit

v0.11.5

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching the source for inline image embeds and the Snacks [[path]] test case mentioned in the issue. Compare the requested per-embed width behavior with the linked Orgmode #+ATTR_HTML documentation; done means an image width can be set for one embed without changing global image settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.