BaroqueW

BaroqueW

and his sidekick nikkitaa

BaroqueW RSS Feed
 
 
 
 

Posts tagged FTP

Quick online galleries

Sometimes you want to post pictures online but don’t have time to make a post or add them to a proper gallery. I wrote little pieces of Applescript and a short action for Automat (for MacOSX then) that send on a webserver a folder containing the appropriate files to generate a gallery as well as your images. Otherwise, just add the content of Autogallerie.zip or AutosmoothD.zip in a folder containing your pictures and just send that folder to your server FTP.

  • The first option is displaying two frames, one of them displaying the content of the folder and the other frame displaying the selected picture. Loading those pages are very slow to load since all full size pictures are loaded at the same time… The PHP code was available on the Internet but I forgot its source and author. If you have any hint about that, just let me know. Example of such a gallery
  • The second solution uses SmoothGallery by JonDesign. This solution is generating a slideshow and looks really better. It is coded in JavaScript and is fully customizable. For more details, just have look at JonDesign’s website. Example of such a gallery

In both cases, remember to modify AutoXXX.scpt (This file just copies the gallery’s files into the folder containing your pictures) to adapt it to the location where you extracted upFTemP, Autogallerie and AutosmoothD files. Remember to modify upFTemP.workflow (This file sends files on a FTP server. In this case it will send the folder containing your pics and the gallery’s files) with the identifiers for your FTP connection. This Automator file requires Fetch FTP actions (free educational license).

Once all the settings are ok, you just have to save the .scpt and the .workflow as applications (.app). To create a gallery, just drag and drop the folder containing your pics on Autosmooth/Autogalerie’s icon. You will get a gallery located in http://upFTemP-website/Folder-you-drag-and-dropped-on-AutoXXXX/index.php

upFTemP

Autosmooth

Autogalerie

Category: Articles in English, Tech >> Computer | Leave a comment

Galeries en ligne rapides

Parfois il arrive qu’on veuille mettre en ligne une petite série de photos sans pour autant vouloir l’intégrer à une galerie de grande envergure ou en avoir le temps. J’ai donc écrit deux petits scripts Applescript et Automator (pour MacOSX donc) qui envoient un dossier sur un serveur avec de quoi générer une galerie automatiquement. Sinon, il vous suffit de copier le contenu de Autogallerie.zip et AutosmoothD.zip dans un dossier d’images et de l’envoyer vous-même sur votre serveur FTP.

  • La première version produit deux cadres, un affichant la photo et l’autre le contenu du dossier. Le chargement est très long pour les visiteurs car toutes les images non-redimensionnées se chargent en même temps… Le code PHP était disponible sur Internet, je l’ai retouché un peu mais je ne retrouve plus son auteur ni où je l’ai trouvé, si quelqu’un peut m’aider, contactez-moi. Exemple d’une telle galerie.
  • La seconde solution intégre SmoothGallery par JonDesign. Cette solution est bien plus belle à mon avis. Celle-ci est codée en JavaScript et est complétement personnalisable. Pour plus d’informations, consultez le site de JonDesign. Exemple d’une telle galerie.

Dans les deux cas, pensez à modifier AutoXXX.scpt (Ce fichier se contente de copier les fichiers de la galerie dans le dossier contenant vos images) pour l’adapter aux emplacements où vous avez décompressé Autosmooth, Autogalerie et upFTemP. Pensez aussi à modifier upFTemP.workflow (Ce fichier envoie sur un serveur FTP les fichiers qu’on lui soumet. En l’occurence, le dossier contenant votre nouvelle galerie) avec vos identifiants pour une connexion FTP. Ce fichier Automator nécessite les actions Fetch FTP (gratuit pour les étudiants).

Une fois les paramètres réglés, vous n’avez plus qu’à sauvegarder le .scpt et .workflow sous forme d’applications (.app). Pour créer une galerie, vous avez juste à déplacer un dossier contenant des images sur l’icône d’Autosmooth ou d’Autogalerie et le tour est joué ! Vous avez une galerie située dans http://Site-configuré-dans-upFTemP/Nom-du-dossier-que-vous-avez-glissé-sur-AutoXXXX/index.php

Autogalerie

Autosmooth

upFTemP

Category: Articles en français, Tech >> Computer | Leave a comment