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:

WebCatalog can't find database (1997) BUG?-.html extention not working. (2000) date search not working when type=date specified (2007) License (2003) restart needed???? (1997) url .. (2003) archives down (2001) includes and cart numbers (1997) Closing databases (2003) Further on formula.db failure to calculate shipCost (1997) webcat2b12 CGI -- Date comparisons (1997) [WebDNA] sudo WebCatalogCtl stop won't work (2016) Date format (2000) [OT] What System Software? (2003) Searching multiple Databases (1997) GuestBook example (1997) Cart questions (1997) WebCatalog 4.0 has been released! (2000) Document Contains No Data! (1997) Auto entering Friday's date in a field (2002)