Testing embedding images

If you would like to share some of your garden railway photographs or photos of prototypes which might inspire members, then please post them in here
Post Reply
User avatar
ge_rik
Administrator
Administrator
Posts: 6580
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Testing embedding images

Post by ge_rik » Mon Jul 27, 2015 7:56 am

Just trying something

Image


Image


Rik

Just wondering if there's a way of dynamically re-sizing images linked-to via URL.
Last edited by ge_rik on Tue Jul 28, 2015 8:43 am, edited 10 times in total.
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
Lonsdaler
Driver
Driver
Posts: 1229
Joined: Tue May 20, 2014 9:50 am
Location: North Yorkshire

Post by Lonsdaler » Mon Jul 27, 2015 9:08 am

Doesn't look like it, at least not with that code.
Phil

Sporadic Garden Railer who's inconsistencies know no bounds

My Line - https://gardenrails.org/forum/viewtopic ... 41&t=11077

User avatar
ge_rik
Administrator
Administrator
Posts: 6580
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Post by ge_rik » Mon Jul 27, 2015 1:09 pm

BaBBLR:112252 wrote:Doesn't look like it, at least not with that code.
I've tried a few variations but can't find aything that seems to reduce the size of the original image.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
Lonsdaler
Driver
Driver
Posts: 1229
Joined: Tue May 20, 2014 9:50 am
Location: North Yorkshire

Post by Lonsdaler » Mon Jul 27, 2015 3:45 pm

Looks like it might be possible to put a limit in the code for the forum, https://www.phpbb.com/community/viewtop ... 0&t=577794
so all images resize, but I can't find anything that does it 'on the fly', so's to speak.
Phil

Sporadic Garden Railer who's inconsistencies know no bounds

My Line - https://gardenrails.org/forum/viewtopic ... 41&t=11077

User avatar
MDLR
Driver
Driver
Posts: 4027
Joined: Thu Jan 15, 2009 10:38 pm
Location: Near Ripley, Derbyshire, UK
Contact:

Post by MDLR » Mon Jul 27, 2015 3:56 pm

At least we got the picture - you could probably drop the code underneath it. If you've got size problems(ahem!) you could try re-sizing the picture to (say) 600 x 400 pixels and saving it with a new name to preserve the original.
Brian L Dominic
Managing Director
Flagg Fluorspar Co
www.mdlr.co.uk/ff.html

User avatar
ge_rik
Administrator
Administrator
Posts: 6580
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Post by ge_rik » Mon Jul 27, 2015 5:53 pm

MDLR:112259 wrote:At least we got the picture - you could probably drop the code underneath it. If you've got size problems(ahem!) you could try re-sizing the picture to (say) 600 x 400 pixels and saving it with a new name to preserve the original.
Hi Brian
I was just wondering if the BB Code for resizing URL based images worked on this forum. I'm finding that if the original online image is quite big then linking to it with the IMG tag tends to distort the page. Pity there isn't a way of dynamically resizing the online image other than downloading, resizing and then uploading.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
MDLR
Driver
Driver
Posts: 4027
Joined: Thu Jan 15, 2009 10:38 pm
Location: Near Ripley, Derbyshire, UK
Contact:

Post by MDLR » Mon Jul 27, 2015 5:59 pm

You need to re-size the image on your own PC or whatever using an image manipulation program (I use Photoshop) which also has a "Save for Web" option.
Brian L Dominic
Managing Director
Flagg Fluorspar Co
www.mdlr.co.uk/ff.html

User avatar
River Lin
Fireman
Fireman
Posts: 410
Joined: Wed Dec 11, 2013 8:40 pm
Location: Leicester

Post by River Lin » Mon Jul 27, 2015 11:27 pm

Hi all.
I do everything on my (this) Asus 7 inch tablet.
1. Take original photos with this tablet.
2. Resize photo to 640 pixels wide using photo editor downloaded free from the Android Play store.
3. Save resized photo in new folder on this tablet.
4. Add a link to each photo as needed in my blog to this forum by clicking "Attach File" below this text box. Then "Choose File" then "Upload File.".

Example.

Image

David.
David T.

User avatar
ge_rik
Administrator
Administrator
Posts: 6580
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Post by ge_rik » Tue Jul 28, 2015 7:45 am

I have no problem with resizing attached images, I was checking to see if there was a way of dynamically resizing images which are already uploaded to another website when using the IMG tag.

On another forum which I frequent, you can add a width parameter inside the first set of square brackets to specify the size the image will be displayed -

eg Image

Otherwise, as in this thread, either the image disappears off the page or the text on the page shrinks to an unreadable size.

Would be handy to be able to resize images which are already online rather than having to dowload, edit and then upload them again as attachments.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Post by tom_tom_go » Thu Jul 30, 2015 12:49 pm

Hi Rik,

It is bad practice to resize images the way you describe because browsers still have to load the full size image and then process it to the desired dimensions resulting in slower load times, using more bandwidth and can lead to displaying a poorer quality image than the original.

You can sign up for free photo sharing sites like Photobucket where you can either resize the image first on your computer or do it on the site and then share your images across all the forums you use via links or code.

Great photo BTW, I do enjoy your posts about your builds and line.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests