Re: [WebDNA] fileinfo question

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112701
interpreted = N
texte = 284 --Apple-Mail=_B4B7689D-E60D-4787-92D3-482108EF729B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Rich If you do it =E2=80=9Con the fly=E2=80=9D than you are having to = interrogate each image when it is called which may put a load on your = server, if you have the info in a db along with the name then the added = overhead of getting the dimensions from the db is negligible. Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 30 Mar 2016, at 08:39, Rich Kwas wrote: >=20 > I never knew [fileinfo] pulls data from a photo without needing to = view it first. > So then.... >=20 > I have hundreds of pages where there are sliding photo galleries on = each page. >=20 > Would it be better to snag fileinfo from different images used in = these galleries > .....up to 6 images per gallery > (just an example, not actual code used on the page) >=20 > [FileInfo file=3D../photos/[photo1name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo1name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo2name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo2name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo3name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo3name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo4name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo4name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo5name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[phot5name].jpg] H=3D[ImageHeight][/FileInfo]= >=20 > [FileInfo file=3D../photos/[photo6name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo6name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > Or would I be better off snagging the w&h from a database holding = photo filenames and dimensions..... >=20 > There currently are over 30K images in this "photos" folder, although = the client is telling me they are deleting the older images, but they've = been saying that for some time now LOL >=20 > Does yanking the w&h via [fileinfo] utilize more of the server/ram etc = than just getting it from a database? > Or nothing much to worry about either way? >=20 > Currently using webdna 6.2 on windows server 2008 >=20 >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_B4B7689D-E60D-4787-92D3-482108EF729B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Rich

If = you do it =E2=80=9Con the fly=E2=80=9D than you are having to = interrogate each image when it is called which may put a load on your = server, if you have the info in a db along with the name then the added = overhead of getting the dimensions from the db is negligible.


Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 30 Mar 2016, at 08:39, Rich Kwas <richkwasniewski@yahoo.com> wrote:

I = never knew [fileinfo] pulls data from a photo without needing to view it = first.
So then....

I have hundreds of pages where there are sliding = photo galleries on each page.

Would it be better to snag fileinfo from = different images used in these galleries
.....up= to 6 images per gallery
(just = an example, not actual code used on the page)

[FileInfo file=3D../photos/[photo1name].jpg] = W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo1name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo2name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo2name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo3name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo3name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo4name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo4name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo5name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[phot5name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo6name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo6name].jpg] = H=3D[ImageHeight][/FileInfo]

Or would I be = better off snagging the w&h from a database holding photo filenames = and dimensions.....

There currently = are over 30K images in this "photos" folder, although the client is = telling me they are deleting the older images, but they've been saying = that for some time now LOL

Does yanking the = w&h via [fileinfo] utilize more of the server/ram etc than just = getting it from a database?
Or nothing much = to worry about either way?

Currently using = webdna 6.2 on windows server 2008



--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_B4B7689D-E60D-4787-92D3-482108EF729B-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] fileinfo question (Rich Kwas 2016)
  2. Re: [WebDNA] fileinfo question (Stuart Tremain 2016)
  3. [WebDNA] fileinfo question (Rich Kwas 2016)
284 --Apple-Mail=_B4B7689D-E60D-4787-92D3-482108EF729B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Rich If you do it =E2=80=9Con the fly=E2=80=9D than you are having to = interrogate each image when it is called which may put a load on your = server, if you have the info in a db along with the name then the added = overhead of getting the dimensions from the db is negligible. Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 30 Mar 2016, at 08:39, Rich Kwas wrote: >=20 > I never knew [fileinfo] pulls data from a photo without needing to = view it first. > So then.... >=20 > I have hundreds of pages where there are sliding photo galleries on = each page. >=20 > Would it be better to snag fileinfo from different images used in = these galleries > .....up to 6 images per gallery > (just an example, not actual code used on the page) >=20 > [FileInfo file=3D../photos/[photo1name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo1name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo2name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo2name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo3name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo3name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo4name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo4name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > [FileInfo file=3D../photos/[photo5name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[phot5name].jpg] H=3D[ImageHeight][/FileInfo]= >=20 > [FileInfo file=3D../photos/[photo6name].jpg] W=3D[ImageWidth][/FileInfo]= > [FileInfo file=3D../photos/[photo6name].jpg] = H=3D[ImageHeight][/FileInfo] >=20 > Or would I be better off snagging the w&h from a database holding = photo filenames and dimensions..... >=20 > There currently are over 30K images in this "photos" folder, although = the client is telling me they are deleting the older images, but they've = been saying that for some time now LOL >=20 > Does yanking the w&h via [fileinfo] utilize more of the server/ram etc = than just getting it from a database? > Or nothing much to worry about either way? >=20 > Currently using webdna 6.2 on windows server 2008 >=20 >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_B4B7689D-E60D-4787-92D3-482108EF729B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Rich

If = you do it =E2=80=9Con the fly=E2=80=9D than you are having to = interrogate each image when it is called which may put a load on your = server, if you have the info in a db along with the name then the added = overhead of getting the dimensions from the db is negligible.


Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 30 Mar 2016, at 08:39, Rich Kwas <richkwasniewski@yahoo.com> wrote:

I = never knew [fileinfo] pulls data from a photo without needing to view it = first.
So then....

I have hundreds of pages where there are sliding = photo galleries on each page.

Would it be better to snag fileinfo from = different images used in these galleries
.....up= to 6 images per gallery
(just = an example, not actual code used on the page)

[FileInfo file=3D../photos/[photo1name].jpg] = W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo1name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo2name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo2name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo3name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo3name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo4name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo4name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo5name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[phot5name].jpg] = H=3D[ImageHeight][/FileInfo]

[FileInfo = file=3D../photos/[photo6name].jpg] W=3D[ImageWidth][/FileInfo]
[FileInfo file=3D../photos/[photo6name].jpg] = H=3D[ImageHeight][/FileInfo]

Or would I be = better off snagging the w&h from a database holding photo filenames = and dimensions.....

There currently = are over 30K images in this "photos" folder, although the client is = telling me they are deleting the older images, but they've been saying = that for some time now LOL

Does yanking the = w&h via [fileinfo] utilize more of the server/ram etc than just = getting it from a database?
Or nothing much = to worry about either way?

Currently using = webdna 6.2 on windows server 2008



--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_B4B7689D-E60D-4787-92D3-482108EF729B-- . Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Re:listfiles-looking for slick solution (1997) Quitting WebMerchant ? (1997) Practice runs ? (1997) WebCat2 - many [carts] on one template page? (1997) Off-Topic: Optimal WebSTAR settings for WebDNA plugin v4.5 (2002) ErrorMessage.db and redirect URL (1998) Feature Request: DB Field manipulation (1998) Sort & Shownext (1999) Car Database (2002) HomePage Caution (1997) [WebDNA] Basic Search (2008) Separate SSL Server (1997) Emailer Q (2002) HELP WITH DATES (1997) Payment calculator ?? (2000) Email Line Breaks (2003) emailer setup (1997) Shared conversion under WebTen (1998) math on date? (1997) Summ (1998)