• Guest, Help us understand what we can do better in future. Click Here!

How to upload images to your post.

Jwest7788

Well-Known Member
Administrator
Premium Member
#1
Since there was some confusion from a new member, I wanted to make a quick how-to for posting images to the forum. (Really quick, haha)
========================================​
First upload your image to the site using this button:
upload-an-image.png

Then insert the image into your content by selecting the size of image you want uploaded:
insert.png
 
Last edited:

Alexander

Super User
Administrator
#2
Neat! I didn't fully understand how I could share images using the image URLs. I'm going to test that here if no one else minds
 

Alexander

Super User
Administrator
#6
Okay thanks Josh. I did try to use that button for image URL but no matter how many different hand gestures I tried on my iPad I was not able to get that box to come up. This might just mean that it doesn't work from iPad unless somebody knows. Either way I will try it again some other time. :)
 

Jwest7788

Well-Known Member
Administrator
Premium Member
#7
Okay thanks Josh. I did try to use that button for image URL but no matter how many different hand gestures I tried on my iPad I was not able to get that box to come up. This might just mean that it doesn't work from iPad unless somebody knows. Either way I will try it again some other time. :)
Sounds good, I'll see if I can get my hands on an Ipad to do some testing too.

Actually, if anyone notices functionality not working on their devices, let me know, I have never actually done any cross device / cross browser compatability testing on the site.

JW
 

Janger

(John)
Administrator
Premium Member
#8
I'm generally amazed at how well this all works from my phone. Upload images, write, post. From my phone. The whole forum software pack is brilliant.
 

Jwest7788

Well-Known Member
Administrator
Premium Member
#9
Update: I found a software I am using to guarantee that images are uploaded right way up, not sideways:

https://savolai.net/software/JPEG-EXIF_autorotate
---> Obvious warning, I did not develop this, and it's open source (not actively being managed), use at own risk, etc. etc.

I've been using it with great success. It basically automatically rotates images and removes the hidden iphone rotation data, so images always upload everywhere right way up.

It adds right click menu items when you click on a folder containing .jpg images:
autorotatejpg.png


When Installing, I recommend using these settings:
autorotate2.png

This means when it's done it will not sit there asking you to "hit any key to close this window", and will automatically regenerate the thumbnails that show in your computer to reflect the actual image rotation. (Helpful if you help your phone sideways, but the phone did not detect that it was sideways before you took the picture.)



For anyone that is having issues with image upload, this is an easy fix you can implement, as I have pretty much given up hope of resolving the sideways images at the forum software level.


JW
 

Janger

(John)
Administrator
Premium Member
#10
Well I looked at the site for that program. I guess that program actually uses another program called jhead to do the work. That program is a command line program eg:
jhead -autorot image.jpg

Would it be easy to add a post processing step to the image upload in xenforo? And basically call that command line above for every image. I'm wondering if it would correctly rotate all photos regardless of orientation- it sounds like it might.
 

Jwest7788

Well-Known Member
Administrator
Premium Member
#11
Edit: I'm looking into this. I am not super great with linux command line, but am hopeful I can figure out how to call jhead during upload...

Update, I think I got this working.... By some miracle....


Can you guys upload to test, I am not 100% sure, but my below images uploaded properly?

JW
 
Last edited:

Jwest7788

Well-Known Member
Administrator
Premium Member
#13
It never struck me to use this software for forum postprocessing, hopefully this worked, that would be a huge thorn in the side, removed, as I truly had given up hope of resolving that issue.


It appears the autorate is also stipping all exif data from jpgs uploaded too, which is great for privacy purposes.
 
Last edited:

Janger

(John)
Administrator
Premium Member
#17
it seems to be working. these test images look ok on my computer and on the iphone. can you do a batch 'update all' command for all pictures to fix the old ones? Assuming the pictures are in a tree of directories. something like brute force:
jhead -autorot *.jpg
jhead -autorot */*.jpg
jhead -autorot */*/*.jpg
etc.

not elegant but might work just fine. Maybe make backups first...
 

Jwest7788

Well-Known Member
Administrator
Premium Member
#18
It's a good thought. After looking into it, this forum converts all images into a .data format for storage, and live translates that back to .jpg when being used. As such, I do not know how we can edit historical photos with this scripting, as it's all meant for .jpgs.

:(

JW
 

Janger

(John)
Administrator
Premium Member
#19
That's really weird it does that. There is no extra compression possible so why change the format? Oh well.