K-Tec

Files section

  • albertw
  • Topic Author
  • Offline
  • IFAS Secretary
  • IFAS Secretary
More
21 years 1 month ago #858 by albertw
Files section was created by albertw
Hi,

Would it be possible to have the files section
1) use thumbnails
2) open the image at at optimal size in the same window rather than opening a new browser window and leave the top and sidebars in place for navigation.

Cheers,
~Al

Albert White MSc FRAS
Chairperson, International Dark Sky Association - Irish Section
www.darksky.ie/

Please Log in or Create an account to join the conversation.

More
21 years 1 month ago #859 by voyager
Replied by voyager on topic Re: Files section

Hi,

Would it be possible to have the files section
1) use thumbnails

Yes, this is something I had planned myself. The data base stores teh mime-type of the fiesl so it is easy to figure out what is and is not an image and what can and cannot have a thumb nail. The only problem is generating the thumbnail! There is no point in just displaying the actual image at 10% size or something like that because that will still cause HUGE lagg for people on diall up connections.

2) open the image at at optimal size in the same window rather than opening a new browser window and leave the top and sidebars in place for navigation.

This is not trivial to do. There is no easy way of figuring out what size an image really is! Also what it the image is bigger than the screen?

Bart B.,
IFAS Webmaster.

My Home Page - www.bartbusschots.ie

Please Log in or Create an account to join the conversation.

  • albertw
  • Topic Author
  • Offline
  • IFAS Secretary
  • IFAS Secretary
More
21 years 1 month ago #860 by albertw
Replied by albertw on topic Re: Files section

Yes, this is something I had planned myself. The data base stores teh mime-type of the fiesl so it is easy to figure out what is and is not an image and what can and cannot have a thumb nail. The only problem is generating the thumbnail! There is no point in just displaying the actual image at 10% size or something like that because that will still cause HUGE lagg for people on diall up connections.


Do you have ssh and the ability to install programs on the server? If so you could have a thumnail image (or location) in the database, and have imagemagik or some other tool generate thumbnails when they are uploaded. Theres probably some php library that will do this.

This is not trivial to do. There is no easy way of figuring out what size an image really is! Also what it the image is bigger than the screen?


Well if its bigger then it gets scaled down, isn't there a height and width attribute to the <img> tag? Trouble is that will stretch the smaller images also..

Anyway I think you know what Im looking for, something like photos.groups.yahoo.com/group/lxd55teles...st?.dir=/Planets+pix

Cheers,
~Al

Albert White MSc FRAS
Chairperson, International Dark Sky Association - Irish Section
www.darksky.ie/

Please Log in or Create an account to join the conversation.

More
21 years 1 month ago #862 by voyager
Replied by voyager on topic Re: Files section

Do you have ssh and the ability to install programs on the server? If so you could have a thumnail image (or location) in the database, and have imagemagik or some other tool generate thumbnails when they are uploaded. Theres probably some php library that will do this.

We have shared hosting so we can only request that stuff get added whenever the admins are doing the next upgrade and even then there is no guarantee that it will be done.

However, I will look into getting the packages installed and see how we go from there.

Well if its bigger then it gets scaled down, isn't there a height and width attribute to the <img> tag? Trouble is that will stretch the smaller images also..

WE can intelegently re-size in such a way that only images that need ot be re-sized actaully get re-sized IF we can find out on the server side what the image size is, again this would require some PHP version of image magic or sometihng similar.

Anyway I think you know what Im looking for, something like photos.groups.yahoo.com/group/lxd55teles...st?.dir=/Planets+pix


That link didn't work for me, sorry!

Bart B.,
IFAS Webmaster.

My Home Page - www.bartbusschots.ie

Please Log in or Create an account to join the conversation.

  • albertw
  • Topic Author
  • Offline
  • IFAS Secretary
  • IFAS Secretary
More
21 years 1 month ago #863 by albertw
Replied by albertw on topic Re: Files section

Anyway I think you know what Im looking for, something like photos.groups.yahoo.com/group/lxd55teles...st?.dir=/Planets+pix


That link didn't work for me, sorry!


Appears you need to log into yahoo first... try this www.cademuir.net/gallery/Mercury_Transit/index.html
similar effect (its just a normal thubmnail to scaled image page really)

Thats created offline by a program called Jalbum then uploaded.

Cheers,
~Al

Albert White MSc FRAS
Chairperson, International Dark Sky Association - Irish Section
www.darksky.ie/

Please Log in or Create an account to join the conversation.

Moderators: darragh
Time to create page: 0.114 seconds
Powered by Kunena Forum