rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: TSG on December 05, 2006, 07:08:51 AM

Title: Template Feature Idea
Post by: TSG on December 05, 2006, 07:08:51 AM
I was wondering if it would be possible for a template tag that reveals an image dimension e.g.1024x768px, i mean there are others to show last modified and stuff, could it be a possible feature so the user knows what to expect before they click a thumbnail and load up a wallpaper or image? sounds a bit farfetched, but could it be possible?

Like when an image is attached to the forum, how you can see the resolution of the image, we can already see the hits, and the filesize, but is it possible to have a tag for dimension like, %img-file-dimension%.


[attachment deleted by admin]
Title: Re: Template Feature Idea
Post by: TCube on December 05, 2006, 12:43:40 PM
That_Steven_Guy,

Well you throw in an interesting idea for example if we had to shared some really good pictures done with an digital camera [and not only wall papers].

- Certainly we would have to have thumbnails first with tech. info regarding the full image.

Hereunder the principals tags used by Irfanview when I want to include specific info to each picture I want to include into an HTML numbnails page.

Quote
Available placeholders for file/image properties:
Placeholder Tag name/function 
 $D -   file directory/folder (whole path) 
 $d -   file directory/folder (last subfolder only) 
 $F -   file name (with extension) 
 $N -   file name (without extension) 
 $O -   file extension 
 $S -   file size 
 $T -   file date/time (see Appendix A for additional examples) 
 $U -   current system date/time (see Appendix A for additional examples) 
 $X -   file directory index 
 $M -   page index in a multipage image 
 $Z -   actual zoom size (for full screen/slideshow) 
 $W -   image width 
 $H -   image height 
 $B -   image bits per pixel 
 $C -   JPG file comment, if available 
 $I -   all IPTC data 
 $Ix -   value of the JPG IPTC tag x, if available (x is a number, see below) (IPTC PlugIn required) 
 $E -   all EXIF data 
 $Ex -   value of the JPG EXIF tag x, if available (x is a number, see below) (EXIF PlugIn required) 
 | -   new line 

I do not add specific tags for digital cameras such as Nikon/ Canon etc..  (I use Kodak EasyShare and a lot of others tags are available).

Thus very quickly I can make an external HTML "picture board" page like this :

Edit : see underneath

What may you notice beneath the picture, after the*.jpg is one serie of number meaning the attributes of tags, in this case : $F$W$H$B$E282$E283
- I'm sorry I didn't bother to improve much the original template, and these tags really look like credit card numbers  ::)
Anyway, now you may click on any thumbnail a) get the picture shown accordingly to the size of your screen, and click again and get it full size.

Please comment or tick the following  ;D

a) gone nuts !
b) far fetched but works
c) could improve a lot



TCube


Title: Re: Template Feature Idea
Post by: TSG on December 05, 2006, 03:30:20 PM
wow, nice answer, but now to understand it lol  :D

d) found it hard to follow - ROFL

I haven't tried it because i don't understand it yet lol.
Title: Re: Template Feature Idea
Post by: TCube on December 05, 2006, 03:39:34 PM
I thought so too ! it's just experimentation !
I know that's nothing to do with a new tag dimension within HFS - it's all external -  but I "kind of" like it better for the moment [so flexible]
Title: Re: Template Feature Idea
Post by: TSG on December 07, 2006, 05:36:46 AM
I would rather just a simple method to show the file resolution that is internal, does anyone know of another method, my collection is mainly wallpapers, so i would like to show the resolutions of these. It think the only method would be a new tag in HFS... but i don't think it is possible, but if there is another way, then that would be cool.
Title: Re: Template Feature Idea
Post by: maverick on December 07, 2006, 06:00:18 AM
Quote
my collection is mainly wallpapers, so i would like to show the resolutions of these

1.  Most programs that create thumbnails give you the option of including the resolution of the original along with the filename.

2.  Include the same resolution files in one folder.   Then just lable the folder.  Example:  Folder 1:  1024 x 768     Folder 2:  800 x 600  etc.   You don't need any additional tags in HFS. 

3.  Here is another way to show it ...  Below is an actual page from my site for 1024 x 768 wallpapers.  I created this html for my wallpapers. 

So, as you can see, there are different ways to let your users know the resolution of the image files.  It all depends on the way you want it displayed.

[attachment deleted by admin]
Title: Re: Template Feature Idea
Post by: TCube on December 09, 2006, 05:20:13 PM
[Update]

Generally I would say you would have to be carefull of the actual micro-software content in the digital camera in order to get the available tags. Thus I would say first : get you camera software updated.
Irfanview doesn't offer the possibility of overlays : my next step would be to get a copyright mention.
Did my best for the html page plug-in : 
 Link Removed   (http://thtml)
Complete tag list out the digital Camera :
 Link removed  (http://.html)

TCube
Title: Re: Template Feature Idea
Post by: ledufe on December 09, 2006, 05:38:39 PM
some interesting codes....

http://qhtimes.com/aspexamples/checkfile.asp

and before you visite the link, a little cue of this page....
Quote
JAVASCRIPT previews image, checks image dimensions of width & height and checks image file size.

Problems: Won't work with Mozilla type browsers. Sometimes width and height aren't read. Very large files' sizes aren't read.

The way I came up with this script was that I needed a client-side script for my website customers that would check their image file sizes before uploads, because some folks don't know how to check file properties and were getting errors when server defaults prevented uploads larger than 200 kb.

I learned that it "isn't possible" to get image file sizes with javascript...however, I know that I HAVE seen scripts that do that, I just can't remember where... anyhow, I did find a script that would calculate the file size of a page: http://www.quirksmode.org/js/filesize.html. The thought occurred to me that if one had a script that would show a preview of an image upload that perhaps the previous script would include that image file in its calculations. I found an image preview script that I liked on http://weblogs.macromedia.com/cantrell/archives/2004/06/how_to_implemen.cfm.

I don't know much about javascript code, so I experimented with getting the two scripts to work with each other until I came up with the following utility:

heheh i know that some of people here will catch the idea...
use the google...
it is easy....
:-P
Title: Re: Template Feature Idea
Post by: rejetto on February 07, 2009, 06:18:38 PM
i had this on my to-do list for a long time.
i think it's time to remove it, since this would be better solved by using an external tool via {.exec.}
Title: Re: Template Feature Idea
Post by: TSG on February 08, 2009, 05:14:25 AM
haha, ok, I totally forgot I even suggested it. was over 2 years ago :o