Friday 21 August 2015

Installing pictobrowser galleries of photos from flickr or picassa onto a web page


Installing pictobrowser galleries of photos from flickr or picassa onto a web page

One day I hope to have a site on software that has plugins for image galleries, so images can be hosted on sites like Flickr and Picassa, which saves server space, might increase options for quick uploading, and adds some slider-viewer-gallery-type functions so that the viewer can choose which of the photos to view. (Picassa is now closed to new uploads)

Most e-commerce sites have a single main picture shown and then a 360 degree slide show or a series of other pictures, and mostly with magnification in a pop-up window as an options. My work-around does not offer a magnified version and offers one basic layout for the first picture and icons to others, which can be adjusted by the way you embed it.

Most e-commerce sites aim for quick loading of the first picture if it's shown on the customer's screen. My work-around does not offer that, so it's something that better suits sideline sites and just happens to do for now for ecommerce. I think there would be more services like this, and possibly there are, but they are hard to find because different types of people want different things from this technology. The most common application is showing a bunch of photos. Showing 360 degree spins or ecommerce photos on a flat-file web site is more rare. Flat file sites are coming back into fashion for speed and cheapness, but are still not much good for ecommerce, and the need to drop-in some kind of third party picture gallery (or shopping cart) is one of the reasons.

Pictobrowser is my work-around 

(handy-web-hints.blogspot.co.uk/2009/08/embedding-flickr-into-websites.html says that there's another.)
db798.com/pictobrowser/ - front page with explanation and instructions
db798.com/pictobrowser/samples.html - samples of what it can do. They start with a grey pattern
db798.com/pictobrowser/builder.php - is a form that writes a script for each kind of sample
db798.com/instruction.swf - is a form for one default setting that shows the plain text of the script on screen.

Showing a default picture instead of a "get flash player" message

Once you have a copy of the script, it can be easier to lay it out in a text editor with a line for each bit, just in for ease of tweaking and in order to guess how the long the long line of code works.
I don't know how it works
A pattern of phrases beginning "so" and ending ";" seems to define variables.
The file is easier to read if you put each of these phrases on one line with a plain text editor.
There is also a bit a the top that says something like "if you don't have flash player you can get a free one here". Mobile phones are set up not to want to download flash player in order to save phone bills. Blogger.co.uk seems to be set-up the same way as well. It's better to put a default first photo in that space so it shows on the site as soon as possible.

Hosting your own swfobject.js javascript for Pictobrowser

One link at the top of the script is to a javascript:
script type="text/javascript" src="http://www.db798.com/pictobrowser/swfobject.js"
It is possible to save this as a file on your own  host - assuming that it allows javascripts - just to stop information having to hop back and forth between your server and pictobrowser's server. You'd have to change the link to the javascript as well. It's a standard javascript and there is stuff on the net about how it works, which I don't much understand.

Hosting your own  .swf shockwave flash file for Pictobrowser

Another link very near the top of the shockwave flash file:
http://www.db798.com/pictobrowserp.swf
It is possible to save this as a file on your own host - assuming that it allows .swf files - just to stop information having to hop back and forth between your server and pictobrowser's server. You'd have to change the link to the flash file as well. It is not a standard flash file, or at least I have not found stuff on the net about how it works.

Removing the grey patterned placeholder from Pictobrowser's flash file

If you managed to get a default photo from the gallery to show instead of the "get flash player" message, it's frustrating to see it disappear again as flash-enabled browsers load and show the grey wiggle pattern for a second or two instead. It's the same pattern that you get if you click on the "pictorbrowserp.swf" link above, so I think they are connected.

I've discovered that there are flash decompilers that convert it to an .fla file. They exist online.

I've discovered that there are programs like free-decompiler.com that do more. The help page of that one links to some blog posts about fiddling with flash. This is the point at which I gave-up last time. If anyone would like to suggest a new pictobrowserp.swf file without the wibbly-wobbly grey placeholder, they would make me happy.

I might come back and post some code examples from the Veganline.com site, but don't promise that they're written in the best way.

By the way, if you look at the source code for this last bit, you will see a default script from db798.com/instruction.swf used to show some UK-made vegan bouncing womens' brogue shoes.
You can see a version with its own default photo instead of "get flash player", and my choice of settings for some other stuff like sizes and self-hosted javascript and flash files on the source of this page:
https://veganline.com/tredair-bouncing/tredair-monkey-boot which shows some rather wonderful monkey boots made in the UK. I hope to change it soon. If it has changed you might have to trawl through the source code of an archived version : https://web.archive.org/web/20150329102305/http://veganline.com/bouncing-monkey-boot.htm
Pictobrowser is my work-around - Showing a default picture instead of a "get flash player" message - Hosting your own swfobject.js javascript for Pictobrowser - Hosting your own .swf shockwave flash file for Pictobrowser - Removing the grey patterned placeholder from Pictobrowser's flash file

Get the flash player here: http://www.adobe.com/flashplayer

This shows on the default view of blogspot.co.uk but not the magazine view - I don't know why.
Just another example of why a picture is a better place-holder than a line saying "get flash player here..."

---------------------------------------------------------------------------

A similar free and easy program geared to flickr (not picassa) is
http://flickrslidr.com/ which doesn't have obvious examples of what it can do

Juicebox with Flickr looks a good free one too, with an example on
http://www.englishweavers.co.uk. This is what they say:
JuiceboxBuilder is a desktop application for building Juicebox galleries. It runs on:
  • Windows XP, Windows Vista, Windows 7, Windows 8.
  • Mac OS X 10.6 or higher.
Web Server
  • To display Juicebox galleries you need a website and a way to upload files (usually via FTP). We do not host image galleries on our servers
  • Password Protection and Image Download features require PHP version 5.2 (or higher) on the web server. The vast majority of web servers run this version of PHP. To find out which version of PHP your server runs, please check with your web server tech support, or follow these instructions.



Another program like pictobrowser that came-on on searches was
http://visualslideshow.com/slideshow-software.html, but it turns-out to be $49 for commercial use or to use without a link back to the publisher. An advantage is that there is a version with no flash. Or possibly good: people who pay do download photos they don't want onto their mobiles might think it's bad.


Batteries, chargers and flashlights have a testing blog on lygte-info.dk where they can read about each other. "I do publish most reviews on BLF, batteries and charger are also published on CPF and Fonarevka", says the author.

This came to mind because product photography lighting can be a chore. You need to use either very bright lights - strobes - or have good curtains to photograph during the day and get even results. For the draw-curtains-and-use-steady-lights method, you ideally need dimmer switches and bulbs that render most of the colours, evenly enough for your camera to adjust. Strobes were the technology of the 2010s but continuous LED lighting has emerged as a new cheap option, with 160-led lights under £15 from China. Their continuous light could be used for table lamps as well as for photography, and allows more intuitive set-up of pictures for someone who hasn't the concentration to stick to one job for a long time. This is why batteries become interesting.

160-led lights appear to use 9v 3a transformers, so far as I can tell from Aliexpress, but are more often used with video batteries which are a couple of lithium-iron in series. Cheap lithium-iron batteries have also just emerged on Aliexpress, and a charger that can cope with them has arrived in the post. In a way, this is exciting.

http://lygte-info.dk/review/Review%20Charger%20Xiamen%20Nanfu%20HG-1412W%20UK.html
...is the review of a the cheapest charger for Li-ion batteries and the other sort.
"The charger will charge lots of chemistries, but it do not use the correct algorithm for any of them. The charger is useable, but not the correct charger if you care about your batteries or want a safe charger". If I understood the graphs and explanations a bit better, this might be more useful, but it gets me started.





3 comments:

  1. I enjoyed reading this blog. in my opinion, everything was perfectly written there as well as few small tips are also can be taken as healthy suggestion. Descriptive informative content written in this blog is very useful.
    tax return services in romford

    ReplyDelete
  2. I absolutely love your article. It is entertaining in places that need to be, yet forward and to the point when it supposed to be that way. Thank you for this information. Sky Custom offers the best custom swing tags Manchester printing in UK at the Affordable prices. We can do any customised shapes, finishes and colors.

    ReplyDelete