S
S
Seekeer2012-05-03 09:27:21
Habr
Seekeer, 2012-05-03 09:27:21

How to make a clickable preview for a picture on habrastorage?

Actually, the question is in the title. The manual method immediately comes to mind - upload two versions of the picture and do everything manually, but this is long and tedious. Maybe someone else knows a thread that will allow you to do this faster?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bad_guy, 2012-05-05
@bad_guy

1 - uploaded a picture
2 - received a registered address for it
3 - pulled out the address of the picture, for example

http://habrastorage.org/storage2/054/a6c/ccb/054a6cccbde13fc8f524b49a6f908b49.jpeg

4 - preview at
http://habrastorage.org/<b>cropped2</b>/054/a6c/ccb/054a6cccbde13fc8f524b49a6f908b49.jpeg
, or copy the address from the download page
5 - we form the html code of the form
<a target='_blank' href='линк_на_полную'><img src='линк_на_превью'></a>

Not the fastest (although someone likes it), but it’s clearly better to “upload two versions of the picture” :)

A
Arthur Koch, 2012-05-03
@dudeonthehorse

<img width="400" style="width="400"" src="src">

does not work. Therefore, only your option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question