{"id":85,"date":"2007-07-08T14:41:22","date_gmt":"2007-07-08T19:41:22","guid":{"rendered":"http:\/\/coevolving.com\/blogs\/index.php\/archive\/customizing-gallery2-uploading-with-gallery-remote\/"},"modified":"2007-07-08T14:42:30","modified_gmt":"2007-07-08T19:42:30","slug":"customizing-gallery2-uploading-with-gallery-remote","status":"publish","type":"post","link":"http:\/\/coevolving.com\/blogs\/customizing-gallery2-uploading-with-gallery-remote\/","title":{"rendered":"Customizing Gallery 2, uploading with Gallery Remote"},"content":{"rendered":"<p>Having satisfied the publishing of text &#8212; with a <a href=\"http:\/\/coevolving.com\/blogs\/index.php\/archive\/installing-and-customizing-wordpress-on-your-own-domain\/\" title=\"coevolving.com\/blogs\/index.php\/archive\/installing-and-customizing-wordpress-on-your-own-domain\/\">WordPress blog installed on a hosted domain<\/a> &#8212; the natural next step is publishing photographs.  While it&#8217;s easy to <a href=\"http:\/\/codex.wordpress.org\/Using_Image_and_File_Attachments\" title=\"codex.wordpress.org\">upload and embed images in a WordPress post<\/a>, it&#8217;s better to have a specialized image gallery when the photo archive is large. The long term goal is to show random thumbnails on your WordPress sidebar, inviting the browsing images in your gallery, but that&#8217;s a feature for some later day.<!--more--><\/p>\n<p>I edit and store images in a hands-on approach for myself.<sup>1  <\/sup>For most snapshooters, though, since web hosting is now so cheap &#8212; <a href=\"http:\/\/www.site5.com\/in.php?id=27648\" title=\"site5.com\">$5 per month for 110GB<\/a>! &#8212; the blogger can take advantage of that space.  The alternatives are living with <a href=\"http:\/\/http:\/\/flickr.com\/help\/limits\/#65\" title=\"flickr.com\/help\/limits\/#65\">the constraints of a free service (e.g. Flickr)<\/a>, or <a href=\"http:\/\/flickr.com\/upgrade\/\" title=\"flickr.com\/upgrade\/\">paying for a &#8220;pro&#8221; account<\/a>.<\/p>\n<p>Fantastico supports automated installation of <a href=\"http:\/\/coppermine-gallery.net\/index.php\" title=\"coppermine-gallery.net\">Coppermine<\/a> &#8212; which has many fans &#8212; but I&#8217;ve found <a href=\"http:\/\/gallery.menalto.com\/\" title=\"gallery.menalto.com\">Gallery<\/a> to be great choice due to a unique client-based front.  <a href=\"http:\/\/gallery.menalto.com\/wiki\/Gallery_Remote\" title=\"gallery.menalto.com\/wiki\/Gallery_Remote\">Gallery Remote<\/a> enables drag-and-drop staging of image files and then automatically downsamples images as it uploads them to the web site.  Since a 1024&#215;768 image represents a 0.8MP file while point-and-shoot cameras commonly have resolutions of 5MP to 6MP, downsampling is a task that can be gladly automated.<\/p>\n<p>As I install the packages on some friends&#8217;s web sites, I&#8217;ll record the tasks along the way.<\/p>\n<h3>A. Install Gallery<\/h3>\n<p>(1) Again using <a href=\"http:\/\/wiki.site5.com\/Fantastico#Weblog_engines_and_CMS\" title=\"wiki.site5.com\/Fantastico#Weblog_engines_and_CMS\">Fantastico \u2014 on site5 SiteAdmin, it\u2019s under \u201cCGI &amp; PHP scripts<\/a> &#8212; Gallery is halfway down the page, under &#8220;Image Galleries&#8221;.<\/p>\n<ul>\n<li>(a) Install in a directory named <em>gallery<\/em>.  (Watch out on documentation, because sometimes people install under <em>gallery2<\/em>).<\/li>\n<li>(b) The <em>Admin access data<\/em> Administrator userid and password are a maximum of eight letters, so they&#8217;ll truncate if you&#8217;re longer.<\/li>\n<li>(c) For the Base Configuration, use the admin fullname of <em>yourdomain <\/em>with an admin e-mail address of <em>yourdomain@yourdomain.com<\/em> (that you had previously set up).<\/li>\n<\/ul>\n<h3>B. Setup Gallery<\/h3>\n<p>(2) Go to <em>yourdomain.com\/gallery<\/em>, and login with the admin access userid and password (i.e. the eight-letter version).  If you wish, at <em>Account Settings<\/em>, you can change your password, but you can&#8217;t change the initial 8-letter admin userid.<\/p>\n<p>(3) Select <em>Site Admin<\/em>.   On <em>General Settings<\/em>, change the <em>Embedded Markup<\/em> to <em>Raw HTML<\/em>.  (The e-mail settings have already been set up by Fantastico, so you can leave these blank).<\/p>\n<ul>\n<li>(a) At <em>Plugins &#8230; Plugins &#8230;<\/em> next to <em>URL Rewrite &#8230;<\/em> ensure that this is disabled.  While pretty URLs seem to work fine for Gallery by itself, the <a href=\"http:\/\/www.galleryembedded.com\/forums\/viewtopic.php?t=7583\" title=\"galleryembedded.com\/\">developers of WPG2 WordPress-Gallery integration are explicitly avoiding it<\/a>.<\/li>\n<li>(b) Scroll down the Plugins &#8230; Plugins &#8230; screen to <em>install <\/em>(and <em>activate<\/em>) (a) theme(s).  I like <em>Hybrid<\/em>.<\/li>\n<li>(c) Select the other tab to <em>Get More Plugins<\/em> &#8230; then <em>Download Plugin List<\/em>.  Selecting to download or upgrade from this list calls to the <em>Official Release Repository<\/em>, as the most painless way of keeping a system up to date that I&#8217;ve ever experienced!<\/li>\n<li>(d) From <em>Get More Plugins<\/em> &#8230; scroll down to <em>Remote Interfaces<\/em> &#8230; and you&#8217;ll see <em>Remote <\/em>&#8230; <em>download <\/em>&#8230;.  Do that, it it should become activated on the <em>Plugins &#8230; Plugins &#8230; <\/em>screen.<\/li>\n<\/ul>\n<p>(4) Under <em>Site Admin<\/em> &#8230; <em>Themes <\/em>&#8230; you can choose the default theme.  (As I said before, I like <em>Hybrid<\/em>).<\/p>\n<p>(5) Go to the main <em>Gallery <\/em>page (i.e. leaving <em>Site Admin<\/em>) by selecting the <em>Gallery <\/em>link in the upper left.  (When you get to the main page, if you&#8217;re using <em>Hybrid<\/em>, select the icon to open up the side panel).  The root directory is considered to be an album, so let&#8217;s modify the basic information there.<\/p>\n<ul>\n<li>(a) Select <em>Edit Album<\/em> &#8230; and change the <em>Title <\/em>(e.g. Firstname Lastname&#8217;s Photo Gallery).  The Description will be at the top of the page when someone comes to the site, so you might provide him or her with a path back to the blog, e.g.<code><br \/>\nHave fun viewing the photographs!&lt;br \/&gt;<br \/>\nWhen you'd like to read, &lt;a href=\"http:\/\/yourdomain.com\/blog\"&gt;visit the blog&lt;\/a&gt;<\/code><\/li>\n<li>(b) Under <em>Edit Album<\/em> &#8230; <em>Album <\/em>&#8230; I find that <em>Thumbnails <\/em>of <em>150 <\/em>pixels will allow two thumbnails wide with descriptions in Hybrid, but 120 or even 100 pixel images are legible.  Check <em>Use this thumbnail size in all subdirectories<\/em>.<\/li>\n<\/ul>\n<p>At this point, Gallery is functional, but it&#8217;s empty.  It doesn&#8217;t have any albums defined, and it doesn&#8217;t have any images.  You could continue in this web interface, but let&#8217;s take advantage of available client interface.<\/p>\n<h3>C. Install Gallery Remote<\/h3>\n<p>(6) Within <em>Site Admin<\/em> &#8230; <em>Plugins <\/em>&#8230; <em>Get More Plugins<\/em> &#8230; scroll down to <em>Remote Interfaces<\/em> &#8230; <em>Remote <\/em>&#8230; and select the action install &#8230; from the <em>Official Release Repository<\/em>.  (I&#8217;ve been in the habit of installing just the <em>English UK<\/em>, but once had to install all languages to get rid of an error).<\/p>\n<p>(7) Open another browser tab (or window), and go over to <a href=\"http:\/\/gallery.menalto.com\/wiki\/Gallery_Remote\" title=\"gallery.menalto.com\/wiki\/Gallery_Remote\">http:\/\/gallery.menalto.com\/wiki\/Gallery_Remote<\/a> .  Download the current version for your platform, and install it.  (I already had Java 1.5 installed on my Thinkpad, so I didn&#8217;t need to download the package with Java 1.4 embedded).  Install it.<\/p>\n<p>(8). Start <em>Gallery Remote client<\/em> on your PC\/Mac.<\/p>\n<ul>\n<li>(When I started it, a message of a new version came up.  I shut down <em>Gallery Remote client<\/em> and downloaded the zip file, which contained some files with updates &#8212; not a complete set.  After unzipping the file, I copied these over the installed version, overwriting the old versions).<\/li>\n<li>(a) Under <em>Options <\/em>&#8230; <em>Preferences <\/em>&#8230; <em>Upload <\/em>&#8230; check <em>Resize before upload<\/em> &#8230; and <em>Force resize to<\/em> &#8230; <em>1024<\/em>.  Within a browser window, it&#8217;s unlikely for anyone to see more than 1024 x 768 px, but 1280 or 1600 is available if you think anyone will ever get screens that big.  You might also check <em>Allow HTML markup in captions and extra fields<\/em>, if you wish.<\/li>\n<li>(b) In <em>Gallery Remote<\/em> client <em>Preferences<\/em>, under the <em>URL <\/em>selection, you can fill an <em>Alias <\/em>(<em>yourdomain.com<\/em>), <em>Username <\/em>(the 8-letter one), <em>Password <\/em>(also 8-letters), <em>Gallery Type<\/em> (standalone), and <em>URL <\/em>(<em>http:\/\/yourdomain.com\/gallery<\/em>).<\/li>\n<\/ul>\n<p>(9) On the <em>Gallery Remote<\/em> client main screen, select the <em>Destination Gallery<\/em> and <em>Log in<\/em>.<\/p>\n<ul>\n<li>(a) Create a <em>New Album<\/em>.  I tend to name albums like 200701a-Helsinki, but you can choose whatever makes you comfortable.<\/li>\n<li>(b) Drag-and-drop image files from your PC\/Mac (e.g. Windows Explorer) into the middle pane of Gallery Remote client.  (I find that if you drag more than one file in at the same time, Windows puts them in reverse order.  Thus, I drop-and-drop one by one, to avoid having to resort, later).  Alternatively, there&#8217;s an <em>Add Pictures<\/em> button that brings up a file browser.<\/li>\n<li>(c) Select the <em>Upload Pictures<\/em> button.<\/li>\n<li>(d) Create a second <em>New Album<\/em>, drag-and-drop images, and <em>Upload Pictures<\/em>, so that you&#8217;ll be able to judge the view of Gallery better.<\/li>\n<\/ul>\n<p>At this point, you should have a populated Gallery web site!<\/p>\n<h3>D. Provide a sidebar link from the WordPress blog to Gallery<\/h3>\n<p>(10) In WordPress admin &#8230; <em>Presentation <\/em>&#8230; <em>Widgets <\/em>&#8230;<\/p>\n<ul>\n<li>In <em>Text Widgets<\/em> &#8230; increment the list by one, and save.  Drag-and-drop that new widget into the sidebar &#8212; I prefer the right sidebar in <em>Relaxation 3-column<\/em>.  Enter a headline (e.g. <em>Photo Gallery<\/em>), and a link in the body, e.g.<br \/>\n<code>&lt;ul&gt;<br \/>\n&lt;li&gt;Visit the &lt;a href=\"http:\/\/yourdomain.com\/gallery\"&gt;photo gallery&lt;\/a&gt;.&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n<\/code><\/li>\n<\/ul>\n<p>At this point, you can publish your words on the WordPress blog, and there&#8217;s linkages to and from Gallery.  On some other day, we can add anrandom thumbnail image to the WordPress sidebar.  (At the moment, I&#8217;m waiting for the <a href=\"http:\/\/www.galleryembedded.com\/forums\/viewforum.php?f=41\" title=\"galleryembedded.com\/forums\">impending new v3.0 release<\/a> of <a href=\"http:\/\/wpg2.galleryembedded.com\/index.php?title=Main_Page\" title=\"wpg2.galleryembedded.com\">WPG2<\/a>).<\/p>\n<hr \/>\n<p><sup>1<\/sup> I have a web server in my basement where I keep my digital photo archive.  It&#8217;s unreliable because it relies on <a href=\"http:\/\/en.wikipedia.org\/wiki\/Dynamic_DNS\" title=\"wikipedia.org\">Dynamic DNS<\/a> (DDNS) which gets lost when the router is our house is rebooted, or if the server isn&#8217;t rebooted after a power failure.  I run <a href=\"http:\/\/www.dalbum.org\/\" title=\"dalbum.org\/\">DAlbum<\/a> on this server as my photo archive.  This has major advantages for me:<\/p>\n<ul>\n<li>I can FTP the files directly to the server, thus maintaining a full-sized archive copy of the digital image online.  Files uploaded via PHP scripts (e.g. Gallery 2) are normally restricted to 2MB maximum, each.  A 3MP image saved as JPEG Superfine, a 5MP image saved as JPEG Fine and a 7MP image saved as JPEG Standard may (or may not) be under 2MB in size.  Using a script such as Gallery would still require me to have an archive somewhere else.<\/li>\n<li>In contrast to most other PHP image archives, <a href=\"http:\/\/www.dalbum.org\/\" title=\"dalbum.org\">DAlbum<\/a> creates and stores archives in a batch mode, rather than on-the-fly.  Since I know when I will and won&#8217;t use the server, batch processing works fine for me.<\/li>\n<li>I&#8217;m taking photographs in a different way, now, since I know that the resolution viewed on computer screens is so low compared to the resolution of the cameras (e.g. 5MP or 10MP).  I&#8217;m shooting pictures with the assumption that I&#8217;ll crop them, so the framing in my viewfinder isn&#8217;t as tight as when I used to shoot film.<\/li>\n<\/ul>\n<p>I have to admit that if I hadn&#8217;t already installed an Apache server in my basement some years ago, I probably wouldn&#8217;t do so today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After installing Wordpress, the next step is to install Gallery and upload images to it using Gallery Remote.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-blogging"],"_links":{"self":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/coevolving.com\/blogs\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}