2
$\begingroup$

I found that

Hyperlink[im, "something", ImageSize -> 800]

The ImageSize only add some borders of my im.

How to make my im become the actual size?

You can try a big image.

$\endgroup$
5
$\begingroup$

Short, but the answer, is to fix image size:

Hyperlink[Image[pic, ImageSize -> 800]]
$\endgroup$
2
$\begingroup$

My preferred method to prevent this kind of automatic resizing is to wrap the element in Pane.
This has the advantage that it does not require one to set a specific value with ImageSize.

im = Image[RandomReal[1, {300, 400, 3}]];

Hyperlink[im, "something"]
Hyperlink[Pane @ im, "something"]

enter image description here

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.