Honda Adventure Riders Forum
General Category => Tips, Suggestions and Questions to improve this forum => Topic started by: zebulon on June 10, 2023, 22:31:05
-
to complete the Stewart one here (https://honda-adventure-riders.com/index.php?topic=1899.0)
as said, you've now an option under the message window " add a picture in the message"
if you click on the link you have this window: just drag your picture in the window , or choose to find the picture on your computer ;)
(https://i.postimg.cc/mPPjP0t0/Capture-d-cran-2023-06-10-21-09-16.jpg) (https://postimg.cc/mPPjP0t0)
you have now the "small" image below; you have to repeat if you have a few pictures
now I show you the way to post larger images, and viewers have not to click on each picture to see them
- you go on the preview button down/left to the message window
- in the preview window, click on your picture
and you have this postimage window
(https://i.postimg.cc/CMv1VNns/Capture-d-cran-2023-06-10-21-15-38.jpg)
you choose share on the upper menu; then the second line "direct line" copy it and insert in your message between (http://) tags (the joconda image)
result: you have the picture in full size VCIF_salut
hope it can help
-
This is an explanation of what *I* did to post with full size.
I used linux and vim (the editor)
I did a previous work with the images so that I uploaded a not too big version of them, in png format. This part can be skipped.
-------Preparing images (ImageMagick's convert used).
I started by putting all images I meant to post in one folder. I wanted to reduce them to a 30% of its original size so that the uploaded files needn't be reduced. Also, I like better the png format.
So I created a file where every line contained one name, in the order I meant them to appear. In my case, it was as simple as
ls *.jpg > lesImatges
then I edited this file with vim (if other editor is used, this is done differently, of course)
vim lesImatges
then,
:%s/$/\=printf('%04d', line('.'))/
:%s/jpg0/jpg /
:%s/$/.png/
:%s/^/convert -resize 30% /
the goal is to go from a contents of
mypicsuch1.jpg
mypicsuch2.jpg
...
to
convert mypicsuch1.jpg -resize 30% 001.png
convert mypicsuch2.jpg -resize 30% 002.png
...
then
chmod +x lesImatges
./lesImatges
and the result is a bunch of .png files ready to be uploaded
-------------Posting images
Please notice that in all below it should be img instead of i mg, that I changed in this post for the sake of reading
I uploaded the images as described the button and I ended with something similar to this (this is actually part of Bruno's post, and these IMG-XXXX.jpg are the ones he uploaded)
[i mg]https://i.postimg.cc/Q9SFCXDN/IMG-0298.jpg[/i mg] (https://postimg.cc/Q9SFCXDN)
[i mg]https://i.postimg.cc/Mc2MrPtw/IMG-0300.jpg[/i mg] (https://postimg.cc/Mc2MrPtw)
[i mg]https://i.postimg.cc/kVQ6rQhb/IMG-0302.jpg[/i mg] (https://postimg.cc/kVQ6rQhb)
then I copy all this with the mouse and put it in a file named, say, aRebre
edit aRebre and make it be something like this
wget https://postimg.cc/Q9SFCXDN -O -> totLoFato
wget https://postimg.cc/Mc2MrPtw -O ->> totLoFato
wget https://postimg.cc/kVQ6rQhb -O ->> totLoFato
(I used the following vim commands)
:1,$s/^.....//
:%s/\].*//
:g!/htt/d
:%s/h/wget h/
:%s/$/ -O ->> totLoFato/
(and removed one of the > from the first line)
then
chmod +x aRebre
./aRebre
then
cat totLoFato | grep og:image > llistaB
and edit llistaB, it is something like this
<meta property="og:image" content="https://i.postimg.cc/kGPKj4hS/IMG-0298.jpg" />
<meta property="og:image" content="https://i.postimg.cc/Gp9Ft6y4/IMG-0300.jpg" />
<meta property="og:image" content="https://i.postimg.cc/SK5WMV6D/IMG-0302.jpg" />
and then
:%s%<meta property="og:image" content="%\[i mg\]%
:%s%" />%\[/i mg\]%
converts llistaB in a file whose contents is like
[i mg]https://i.postimg.cc/kGPKj4hS/IMG-0298.jpg[/i mg]
[i mg]https://i.postimg.cc/Gp9Ft6y4/IMG-0300.jpg[/i mg]
[i mg]https://i.postimg.cc/SK5WMV6D/IMG-0302.jpg[/i mg]
Then it is this contents the one that must be posted instead of the original suggestion by the server.
Of course, text can be now inserted where wished.
Greetings
Josep