āCould you explain a bit more on what do you mean by āmodifyā? To accommodate syntax like [[20px]]
?
I agree with the original post. It would be fabulous to be able to specify the size of an image. If I copy an image from the web, Iām stuck with whatever size it comes. Sure I can zoom out and take a screenshot (cropping it with the mouse) and paste the result, there are always workarounds, but thatās just going to deter me from using images in Dynalist.
Currently my solution is to disable inline images, but if I could easily control the size of an image, Iād re-enable inline images. Or if I could selectively enable inline images, Iād choose which ones would display inline (and at what size).
I have Pro and limit the display size of images by pasting this in the Custom CSS Settings
.node-displayed-image {
max-width: 100px;
max-height: 100px;
}
You can run my userscript I made here
So you can resize every image as you want
Second, you can also use use imagus to hover and see the full image
Hereās my CSS files I use for dynalist
Hi, @Vincent_Tang I appreciate all your insight and posts on the board. Might there be a solution for images to be responsive, filling the available space whether on desktop or mobile as opposed to being limited by pixel width?
Thank you!
I played around with it and am getting scaled images by using this:
img.node-displayed-image {
max-width: 100%;
max-height: 100%;
}
I am using this for featured images (in notes, below document titles).
What happened here - the markdown syntax [[20px]]
seems an exceptionally easy fix that resolves every concern raised (including mine today, hence posting here).
Nothing?
We got Sakura AND Sci-Fi theme this year, what more do you want!?!?
Just kidding. Maybe Erica will add it to the trello (their bug tracker of stuff theyāre working on) https://trello.com/b/z0HxDPNo/dynalist-roadmap
I donāt know if itās easy. I mean github markdown doesnt even let you resize images. I donāt know what flavor markdown library dynalist is using or if they baked it themselves.
Personally Iād rather have other features than this, the CSS hover to 100% of little one-liner thumbnails works perfect for all my needs. Anything else would look messy. But thatās just me.
Iād assume that considering itās already using Markdown that adding [[20px]]
would be easy.
But hey, you know what they say about assumptions.
@Erica if you let us know we wont have to assume anymore?
Which flavor of markdown has resizing images as a feature? 20px in github markdown doesnt do anything.
@Morgan_Newall: sorry about the late reply, I somehow didnāt see it in my notifications and only saw it just now when I scrolled down the features section.
I donāt imagine it would be hard to add to our syntax. Itās never a standard in Markdown though, which is why weāve been hesitant to implement it.
For example, you can a look at this Stack Overflow question: https://stackoverflow.com/questions/14675913/changing-image-size-in-markdown
The answers are either suggesting Markdown syntax that only works in only a few programs, or suggesting using HTML, which of course can almost anything.
Weāre trying to move away from WYSIWYG, but if itās a very valuable thing to have, we may add it before then.
Sorry again for the late reply!
Another way to implement this might be by allowing the user to specify classes on images, links, etc. Then they can make it look like whatever they like in custom CSS. This is how Pandoc does it:
![img](http://link-to-image.png){.classname}
and:
[link text](http://linktarget.com){.classname}
and then in custom CSS, e.g.:
img.classname { max-width:50%; max-height:50% }
More info in the Pandoc docs. The reason I like this approach is that it takes away having to implement dozens of different custom markdown markings; you can implement one and your users can format it however they like.
My $0.02.
Nice solution! Except I can see that people will complain that this solution is pretty much Pro only
Hi,
I would like to see a little image-size chooser, so you can quickly chose between small/medium/large/original. Confluence do it this way.
Regards
Got it, thanks for the info. Discourse prompts for 50%, 75%, or 100% of original size when you hover over image, which is similar to what you described in confluence I guess?
It is similar. However instead I would prefer a fixed width-setting for small/medium/large. Having this would help to get better overview, if you have several images with different original sizes in one place.
You mean with fixed pixels, instead of a fixed percentage of the original size?
Exact!