Re: [WebDNA] s3cmd

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111074
interpreted = N
texte = some more info http://www.imagemagick.org/script/escape.php Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 31 Jan 2014, at 2:16 pm, Stuart Tremain wrote: > If you have Imagemagick you can do: >=20 > identify -format = "wide:%w:high:%h:filetype:%C:quality:%Q:filesize:%[size]:colorspace:%[colo= rspace]:filename:%[base]:res:%[resolution.x]" thisimage.png >=20 > Resolution doesn't always work, it depends on how the file is saved, = it may come back as "0 undefined". >=20 >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 26 May 2013, at 2:36 pm, John Butler = wrote: >=20 >> BTW, dear WCS, please allow me to bump this request: >>=20 >> Webdna needs to be able to recognize PNG files... including [width] & = [height] inside [fileinfo] ... >>=20 >> Thanks for posting the below Stuart, for the archives. >>=20 >> -G >>=20 >> On 2013-05-25, at 9:47 PM, Stuart Tremain wrote: >>=20 >>> Hi Guys >>>=20 >>> I have been setting up some new servers and creating systems for a = couple of new clients. One wanted to use amazon to store images but = needed the images to go through an Imagemagick script and other stuff in = the website administration system. >>>=20 >>> The task was how to process the images in the admin and then send = them to amazon, using Ubuntu 12.04 server here is the solution. >>>=20 >>> s3cmd >>> s3cmd is a command line tool for uploading, retrieving and managing = data in Amazon S3. >>>=20 >>> Install s3cmd on your server >>> $ sudo apt-get install s3cmd >>>=20 >>>=20 >>> Create your .s3cfg file and then move it to the WebCatalogEngine = directory so that you can refer to and change it easily. Make sure the = file has correct permissions 0777 owner & group =3D www-data. Refering = to the config files gives you the ability to have different setups for = different sites/situations on the one server >>>=20 >>> Sample code to 'put' files into your amazon bucket and ensure that = the files are public: >>>=20 >>> [shell]s3cmd put --acl-public /var/www/(local directory)/(File name = to upload) s3://(s3 container name)/(filename)/ = --config=3D"/usr/lib/cgi-bin/WebCatalogEngine/.s3cfg"[/shell] >>>=20 >>> Some links: >>> http://s3tools.org/s3cmd >>> = http://www.whiteboardcoder.com/2012/11/reading-s3-via-s3cmd-from-ubuntu-12= 04.html >>> http://linux.die.net/man/1/s3cmd >>>=20 >>> Regards >>>=20 >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>>=20 >>>=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 >>=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 >=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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] s3cmd (Stuart Tremain 2014)
  2. Re: [WebDNA] s3cmd (Stuart Tremain 2014)
  3. Re: [WebDNA] s3cmd (John Butler 2013)
  4. [WebDNA] s3cmd (Stuart Tremain 2013)
some more info http://www.imagemagick.org/script/escape.php Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 31 Jan 2014, at 2:16 pm, Stuart Tremain wrote: > If you have Imagemagick you can do: >=20 > identify -format = "wide:%w:high:%h:filetype:%C:quality:%Q:filesize:%[size]:colorspace:%[colo= rspace]:filename:%[base]:res:%[resolution.x]" thisimage.png >=20 > Resolution doesn't always work, it depends on how the file is saved, = it may come back as "0 undefined". >=20 >=20 >=20 > Regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 > On 26 May 2013, at 2:36 pm, John Butler = wrote: >=20 >> BTW, dear WCS, please allow me to bump this request: >>=20 >> Webdna needs to be able to recognize PNG files... including [width] & = [height] inside [fileinfo] ... >>=20 >> Thanks for posting the below Stuart, for the archives. >>=20 >> -G >>=20 >> On 2013-05-25, at 9:47 PM, Stuart Tremain wrote: >>=20 >>> Hi Guys >>>=20 >>> I have been setting up some new servers and creating systems for a = couple of new clients. One wanted to use amazon to store images but = needed the images to go through an Imagemagick script and other stuff in = the website administration system. >>>=20 >>> The task was how to process the images in the admin and then send = them to amazon, using Ubuntu 12.04 server here is the solution. >>>=20 >>> s3cmd >>> s3cmd is a command line tool for uploading, retrieving and managing = data in Amazon S3. >>>=20 >>> Install s3cmd on your server >>> $ sudo apt-get install s3cmd >>>=20 >>>=20 >>> Create your .s3cfg file and then move it to the WebCatalogEngine = directory so that you can refer to and change it easily. Make sure the = file has correct permissions 0777 owner & group =3D www-data. Refering = to the config files gives you the ability to have different setups for = different sites/situations on the one server >>>=20 >>> Sample code to 'put' files into your amazon bucket and ensure that = the files are public: >>>=20 >>> [shell]s3cmd put --acl-public /var/www/(local directory)/(File name = to upload) s3://(s3 container name)/(filename)/ = --config=3D"/usr/lib/cgi-bin/WebCatalogEngine/.s3cfg"[/shell] >>>=20 >>> Some links: >>> http://s3tools.org/s3cmd >>> = http://www.whiteboardcoder.com/2012/11/reading-s3-via-s3cmd-from-ubuntu-12= 04.html >>> http://linux.die.net/man/1/s3cmd >>>=20 >>> Regards >>>=20 >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>>=20 >>>=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 >>=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 >=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 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:

Version f1 status (1997) Almost a there but..bye bye NetCloak (1997) Problems with [Search] param - Mac Plugin b15 (1997) passing cart value (2003) Secure Server (1997) limitation found on group searching (1997) WC Database Format (1997) Setting up emailer (1998) iis 4.0 (1997) Return as Delimeter (2000) Re:multiple digests, please stop (1997) Strange intermittent WebDNA problems (2008) Not really WebCat (1997) Advice on MacOS & TCP Connects (2000) About the Allow 'Absolute Path' Prefix (2002) [BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011) Having trouble installing on Windows XP Pro... (2006) Authenticating users without dialog box (1997) DOS variable bug (was SandBox and ImageMagick) (2003) New Site Announcement (1998)