Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

[Modular Page] Image Actions does not work

Solved by pamtbaau View solution

Started by TomW 1 week ago · 3 replies · 199 views
1 week ago

When I insert an image on a modular page (text on Quark2 Theme) using the following parameter, the quality changes, but the image is always displayed at the same size.

![Sample Image](media://test/img_1000_l.jpg?Resize=133,200

![Sample Image]media://test/img_1000_l.jpg?cropZoom=133,200

![Sample Image]media://test/img_1000_l.jpg?cropResize=60,40

Without () due to Markdown

What I doing wrong?

last edited 11/21/26 by TomW
1 week ago Solution

Not sure if you've made typo's or if it is intentional, but your code is missing parentheses and you've written Resize instead of resize.

Also be aware of the width set for the images in css:

CSS
.modular-text img {
    box-shadow: var(--q2-shadow-card)
    width: 100%;
    height: auto;
    border-radius: var(--q2-radius-md);
}

The following Markdown snippet is showing 3 images of different sizes;

TXT
![Sample Image](media://windows_background.jpg?resize=133,200)
![Sample Image](media://windows_background.jpg?cropZoom=133,200)
![Sample Image](media://windows_background.jpg?cropResize=60,40)

Resulting images:

image.png

last edited 11/23/26 by pamtbaau
1 week ago

@pamtbaau said:

Not sure if you've made typo's or if it is intentional, but your code is missing parentheses and you've written Resize instead of resize.

I did write that I skipped the parentheses because of Markdown.

I've adjusted the spelling of “Resize,” but it doesn't change anything for me.

All images are the same size. Here's a screenshot of the browser at 20% zoom.

Screenshot 2026-11-23 194655.jpg

@pamtbaau said:

Also be aware of the width set for the images in css:
CSSCopy.modular-text img {
box-shadow: var(--q2-shadow-card)
width: 100%;
height: auto;
border-radius: var(--q2-radius-md);
}

So that means the width is always 100%.

That seems to be the problem. When I set the width to “auto,” it scales correctly.

Screenshot 2026-11-23 195703.jpg

How can I display text that contains an image?

Like this:

Screenshot 2026-11-23 201600.jpg

1 week ago

Pleased to see your issue has been solved.

Please do not burry multiple questions in a single post. Create a new post with its own matching title.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 225 8 hours ago
Support · by alex, 2 months ago
8 666 22 hours ago
Support · by Supple, 5 days ago
1 97 1 day ago
Support · by TomW, 1 week ago
3 158 3 days ago
Support · by TomW, 6 days ago
2 105 5 days ago