Image hosting procedures: the short story

We offer image hosting in the galleries to all of our members. Please review these simple procedures to host your images in your topics.

Moderators: rjlittlefield, ChrisR, Chris S., Pau

rjlittlefield
Site Admin
Posts: 23543
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Image hosting procedures: the short story

Post by rjlittlefield »

Now that the forum is running on phpBB 3.3.0, we no longer use the old "Upload Pic" plugin.

Instead, to upload images to our server, you'll use the standard phpBB facility for "attachments", as follows:
  1. While creating or editing a posting, click on the "Attachments" tab, just below the Preview and Submit buttons.
  2. Click the "Add files" button to open a file navigator panel.
  3. Select your file and upload it.
  4. Click the "Place inline" button, to inject an [attachment] ... [/attachment] tag pair, something like this:

    Code: Select all

    [attachment=0]UploadAttachment.jpg[/attachment]
    
Visually, the process looks something like this (red added here for emphasis):

UploadAttachment.jpg


Note that the [attachment] tag is used only for images that are uploaded to our server and are displayed in the same post to which they are attached.

Images that are displayed from other servers, and images that are attached to other posts, will continue to use the [img] tag as before. (To determine the URL of an image that is attached to another post, use your browser's function to "Open image in new tab" or its equivalent (the exact name varies between browsers), then copy the URL from that new browser tab. It will be something like "https://www.photomacrography.net/forum/download/file.php?id=123"

I'll expand this explanation as it becomes more clear what people need to know.

--Rik

pierre
Posts: 287
Joined: Mon Jan 04, 2010 12:37 pm
Location: France, Var, Toulon

Re: Image hosting procedures: the short story

Post by pierre »

Hi Rik,

This is clear. Tanks !

Are there any restriction on picture Weight / Dimensions ?
Regards

Pierre

rjlittlefield
Site Admin
Posts: 23543
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Re: Image hosting procedures: the short story

Post by rjlittlefield »

pierre wrote:
Sun Jun 21, 2020 12:03 am
Are there any restriction on picture Weight / Dimensions ?
No changes. The limits are still 1024x1024 pixels, and 300 KB file length.

--Rik

pierre
Posts: 287
Joined: Mon Jan 04, 2010 12:37 pm
Location: France, Var, Toulon

Re: Image hosting procedures: the short story

Post by pierre »

Place inline button not visible.

Am I missing something?
Regards

Pierre

rjlittlefield
Site Admin
Posts: 23543
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Re: Image hosting procedures: the short story

Post by rjlittlefield »

You have to do the upload first. After the upload is complete, the "Place inline" button will appear.

--Rik

pierre
Posts: 287
Joined: Mon Jan 04, 2010 12:37 pm
Location: France, Var, Toulon

Re: Image hosting procedures: the short story

Post by pierre »

One file Selected and uploaded but a warning flag appeared :

Error
Cannot add another attachment, 0 is the maximum.
Regards

Pierre

Adalbert
Posts: 2403
Joined: Mon Nov 30, 2015 1:09 pm

Re: Image hosting procedures: the short story

Post by Adalbert »

Hi Rik,
I have just tried to load a small jpg file (1px * 1px) but haven’t found out how to avoid the error: “Cannot add another attachment, 0 is the maximum.”
BTW, the loading of an empty-file causes the following error: “File too large”
BR, ADi

rjlittlefield
Site Admin
Posts: 23543
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Re: Image hosting procedures: the short story

Post by rjlittlefield »

I think the "maximum is 0" problem is now fixed.

Please try again.

For explanation, see https://www.photomacrography.net/forum/ ... 51#p264051 .

--Rik

Adalbert
Posts: 2403
Joined: Mon Nov 30, 2015 1:09 pm

Re: Image hosting procedures: the short story

Post by Adalbert »

Hello Rik,
It works now :-)
https://www.photomacrography.net/forum/ ... 27&t=41923
Many thanks!
BR, ADi

rjlittlefield
Site Admin
Posts: 23543
Joined: Tue Aug 01, 2006 8:34 am
Location: Richland, Washington State, USA
Contact:

Re: Image hosting procedures: the short story

Post by rjlittlefield »

Excellent, thanks for testing.

--Rik

pierre
Posts: 287
Joined: Mon Jan 04, 2010 12:37 pm
Location: France, Var, Toulon

Re: Image hosting procedures: the short story

Post by pierre »

Thanks Rik :)
Regards

Pierre

Lou Jost
Posts: 5933
Joined: Fri Sep 04, 2015 7:03 am
Location: Ecuador
Contact:

Re: Image hosting procedures: the short story

Post by Lou Jost »

Rik, I tried to upload an image 259kb, 1000x952px, but I get an error flag saying the image is too big. Did so again here in this thread, with the same result.

rjlnorm
Posts: 3
Joined: Wed Jul 08, 2020 2:26 pm

Re: Image hosting procedures: the short story

Post by rjlnorm »

Hi, this is Rik, testing with an ordinary user account.

The following image shows for me as 1024x1024 with file length 302,016 bytes on my Windows system.

I wonder if it works?
2014-07-04-23.03.13-ZS-retouched_smallCrop.jpg
But interestingly, it shows as "SIZE 247.41 KiB" in the Attachments panel before posting.

And download gives me a file of length 253,343 bytes.

So, it seems that the upload process has altered the file. That is highly unexpected, and annoying.

So now I'm off to track down yet another problem...

--Rik

Lou Jost
Posts: 5933
Joined: Fri Sep 04, 2015 7:03 am
Location: Ecuador
Contact:

Re: Image hosting procedures: the short story

Post by Lou Jost »

In my case, described above, the forum-calculated size was within 1kb of the Windows-calculated file size, and both were well under the 300kb limit, but the forum still said the file was too big even though the number displayed just to the left of the warning flag correctly showed the file was NOT too big..

rjlnorm
Posts: 3
Joined: Wed Jul 08, 2020 2:26 pm

Re: Image hosting procedures: the short story

Post by rjlnorm »

I notice in a retest that right after I attach my file, the size shows correctly, but following a Preview, it shows a new smaller number. Repeating the process, I see that downloading the file from the Attachments tab, via right-click Save Link As, immediately after uploading, gives me a file that matches the new smaller number and not the number that showed in the Attachments tab at that moment. So, it seems that not only are the file contents getting silently modified, but the Attachments tab can be inconsistent with the server state.

Mysteries abound.

I have not seen any other reports of difficulties with upload to normal posts.

(There was a problem in which upload to a PM would silently fail, but that one clearly traced to a board configuration issue, which is now fixed AFAIK. The symptoms were totally different from Lou's report -- more like the user had hit Cancel in the file navigator dialog.)

Lou, please send a copy of your file to me by email, rj.littlefield@computer.org . It will be very helpful if I can reproduce your problem myself.

--Rik

Post Reply Previous topicNext topic