Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

How to you set an image's width?

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

Description

bug
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

Dominant language
Lua
Stars
3.9k
Forks
192
Avg merge
1d 10h
Merged PRs (30d)
11

Getting set up

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.

More from nvim-orgmode/orgmode

All issues in nvim-orgmode/orgmode

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.