Not Planned Image resizer

Majesty

EGO Zealot
Joined
Aug 4, 2018
Messages
1,904
i want to be able to change the dimensions of an image through this menu when I'm importing an image from a direct link.


s3Dis76.png
 
Upvote 0
If you have a direct link, why not just edit the image yourself? Yeah the feature would be nice to have, but is it worth adding?
 
If you have a direct link, why not just edit the image yourself? Yeah the feature would be nice to have, but is it worth adding?
Imagine i want to take an image from another site and upload it here, but it turns out the picture is huge. I do it now: open the image in a new tab, scroll out, use share, and then upload. That's a lot of steps when I can specify the dimensions here and save myself some time.
 
Imagine i want to take an image from another site and upload it here, but it turns out the picture is huge. I do it now: open the image in a new tab, scroll out, use share, and then upload. That's a lot of steps when I can specify the dimensions here and save myself some time.
It's bad practice to reference images from other sites that aren't dedicated image hosts. You do you though 🐢
 
You can resize images when you add them to a post. Whether you put in the link as in your example and click Insert, or you copy an image and paste it, you're able to resize the image to whatever size you choose. Although you can't choose the exact dimensions, this still works just fine.
 
You can choose the exact dimensions by using BBCode (the actual text formatting used by XenForo in the back) instead of the rich editor (which just converts to BBCode for you behind the scenes). You can do this by using the following formatting:
Code:
[img width="<number>px" height="<number>px"]URL here[/img]

Note that it will adhere to the original aspect ratio (if I remember correctly), so it may not obey your second argument (in the example above, height), if it would cause the image to be stretched/compressed.

Here's an example image resized to a width of 75 pixels:
57a9bca1-5fc0-4f4d-9821-9d53bfa3b993.png


The BBCode for that is:
Code:
[img width="75px"]https://s3.blankdvth.com/57a9bca1-5fc0-4f4d-9821-9d53bfa3b993.png[/img]

You can also use percentages, by using something like width="50%" instead of width="75px"

Also as Luna has said, using direct links to images hosted by other sites (known as hotlinking) is bad practice/bad etiquette and is generally discouraged. This post explains it decently well.

Side note, I can't remember if you need to exit out of the rich editor and use "BBCode mode" for BBCode syntax to work, I never use the rich editor (I always just use BBCode plain with the needed tags) so I can't remember. If you do need to, this can be done by clicking the button that looks like two square brackets ([]) in the top right of the editor bar. It may be hidden under the dot menu (three vertical dots) if you have a narrow screen.

I won't change the status of the suggestion since I'm assuming it's for adding this functionality to the rich editor, but just know that it is possible.
 
I think we have much more pressing issues than resizing images. Maybe in 3 years we can re-look at this.
 
I think we have much more pressing issues than resizing images. Maybe in 3 years we can re-look at this.
It's not that bad considering it's possible to do currently (and honestly, I personally prefer typing BBCode far more than using the rich editor). Adding it to the GUI shouldn't need to be a high priority
 

Latest posts

Back
Top