|
Написано от myOltrans
Неделя, 21 Март 2010 16:03
Последно променен на Неделя, 11 Декември 2011 16:12
If you have photos and videos that you want to keep on your server and do not want to upload to public website services, you can create a simple photo gallery with the applications mentioned bellow. All you have to do is to take your photos from your photo camera, paste them into a folder and name the folder as your desired gallery title.
phpSimpleGallery
Use phpSimpleGallery to publish photos. phpSimpleGallery is a PHP based gallery script that will generate a navigable picture gallery from a directory of images, and includes features such as templates, descriptions, albums, bmp support, caching, and more! phpSimpleGallery features:
- Generates thumbnail images on the fly - can place borders around images to ensure uniform width/height. Border colour is definable in script.
- Template file can define how the gallery integrates with your site. Just add the special html tags to your pages where you want the gallery/buttons/etc to be.
- Sub albums - Just add extra directories of images and phpSimpleGallery will automatically sort them into an album structure for you!
- Comments can be added to the images. Simply upload a text file, named the same as your image (just add .txt to the end) with a line of text, and this will appear as a comment below the thumbnail.
- Supports thumbnail creation for bmp files
- Caches thumbnails and only re-generates them when needed, reducing load on your server.
- Can run 'out of the box' assuming you are running PHP 4.3 and above and GD/ImageMagick
- Easy image management - just upload the image files you want in your gallery via FTP, etc.
For more information and to download the script visit the phpSimpleGallery website.
TinyWebGallery
Use TinyWebGallery to publish photos and videos. The TinyWebGallery is a free php photo album / gallery that is very easy to install, extremely user friendly, does not need a database (uses xml files) but still has all the features you should expect and much more. Some of the features:
- AJAX + Flash navigation with sliding image thumbnails
- XML based - no database needed
- TWG Admin to upload/manage images, manage users, Color Manager, Configuration of TWG ...
- Keyboard navigation (arrow keys)
- 3 different slideshow types
- Protected galleries
- Subgalleries
- Text and image watermarks
- Full video support
- TWG Flash uploader
- Frontend in 29, backend in 5 languages!
- Fullscreen mode
- Remote picture support
- All features can be enabled/disabled/configured
For more information and to download the script visit the TineWebGallery website.
To embed videos I use 5th option from the howto 34 - How to use embedded video support (new 1.5 + extended in 1.6 + reworked in 1.7), Embed a flash video with the local flv player (new 1.6).
- Create a video.php file in the gallery's folder with the following text:
<?php $video_size_x=400; $video_size_y=300; $video_player="FLV"; $video_autostart=true; // or false - depending what you want $video_show_dl_link=false; // true or false works $show_slideshow = false; $default_big_navigation="HTML"; // should be set if you have images and videos in one folder! $video_flv_buffer=2; // this is the buffer is s that is filled before the video starts - This parameter is new in 1.7.8.1! ?>
- Convert your AVIs into FLVs and create a JPG thumbnail image with the same name as the video's - How to convert AVI into FLV, cut clips and generate thumbnail from an AVI video.
To use TinyWebGallery you need web server on your PC. To prepare the PC:
- Install LAMP: ApacheMySQLPHP
- Setup PHP for better performance according to the 53. Howto configure your server to run TWG properly
- Open the info.php file in browser and check what you need to setup.
- Install GDlib: "apt-get install php5-gd"
- Install ffmpeg: "apt-get install ffmpeg"
Resources
|