Version Description
= 7.6.01 =
- This version addresses various bug fixes and feature requests.
- Compatible with wp 5.6
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 7.6.01.005 |
Comparing to | |
See all releases |
Code changes from version 7.6.01.004 to 7.6.01.005
- changelog.txt +2 -0
- wppa-local-cdn.php +2 -2
- wppa-photo-files.php +18 -7
- wppa-utils.php +5 -0
- wppa.php +2 -2
changelog.txt
CHANGED
@@ -14,6 +14,8 @@ In case of album only, the links are only shown to users who have album admin ri
|
|
14 |
* Copying photos from one album to another did not update them in cdn cloudinary. Fixed.
|
15 |
* Fixes for compatibility with wp 5.6
|
16 |
* You can now also enter filenames and photonames in the green search field on the Album Admin page.
|
|
|
|
|
17 |
|
18 |
= 7.5.10 =
|
19 |
|
14 |
* Copying photos from one album to another did not update them in cdn cloudinary. Fixed.
|
15 |
* Fixes for compatibility with wp 5.6
|
16 |
* You can now also enter filenames and photonames in the green search field on the Album Admin page.
|
17 |
+
* Thumbnails of panorama images now always use the thumbnail file rather than a possible CDN file for display.
|
18 |
+
* Creating thumbnails for 360 spheric panoramas now always use the original, i.e. not the possibly formatted source file.
|
19 |
|
20 |
= 7.5.10 =
|
21 |
|
wppa-local-cdn.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains routines for local cdn implementation
|
6 |
-
* Version 7.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -74,7 +74,7 @@ function wppa_cdn_make( $id, $x, $y ) {
|
|
74 |
}
|
75 |
|
76 |
// Internal?
|
77 |
-
if ( class_exists( 'Imagick' ) ) {
|
78 |
$im = new Imagick( $fmpath );
|
79 |
$im->resizeImage( $x, $y, Imagick::FILTER_CATROM, 1 );
|
80 |
$bret = $im->writeImage( $topath );
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains routines for local cdn implementation
|
6 |
+
* Version 7.6.01
|
7 |
*
|
8 |
*/
|
9 |
|
74 |
}
|
75 |
|
76 |
// Internal?
|
77 |
+
if ( false && class_exists( 'Imagick' ) ) {
|
78 |
$im = new Imagick( $fmpath );
|
79 |
$im->resizeImage( $x, $y, Imagick::FILTER_CATROM, 1 );
|
80 |
$bret = $im->writeImage( $topath );
|
wppa-photo-files.php
CHANGED
@@ -436,7 +436,7 @@ function wppa_create_thumbnail( $id, $use_source = true ) {
|
|
436 |
$file = wppa_get_o1_source_path( $id );
|
437 |
|
438 |
// Try source path
|
439 |
-
if ( ! wppa_is_file( $file ) ) {
|
440 |
$file = wppa_get_source_path( $id );
|
441 |
}
|
442 |
|
@@ -516,12 +516,17 @@ function wppa_create_thumbnail( $id, $use_source = true ) {
|
|
516 |
$perc = 100 * $frac;
|
517 |
|
518 |
// Image Magick class?
|
519 |
-
if ( class_exists( 'Imagick' ) && wppa_can_magick() && $type == 'none' ) {
|
520 |
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
|
|
|
|
|
|
|
|
|
|
525 |
if ( $iret ) {
|
526 |
wppa_log( 'fso', 'Magick class created ' . $thumbpath );
|
527 |
$done = true;
|
@@ -750,7 +755,13 @@ function wppa_image_magick( $command ) {
|
|
750 |
}
|
751 |
$out = array();
|
752 |
$err = 0;
|
753 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
|
755 |
$logcom = $command;
|
756 |
$logcom = str_replace( ABSPATH, '...', $logcom );
|
436 |
$file = wppa_get_o1_source_path( $id );
|
437 |
|
438 |
// Try source path
|
439 |
+
if ( ! wppa_is_file( $file ) || wppa_get_photo_item( $id, 'panorama' ) == '1' ) {
|
440 |
$file = wppa_get_source_path( $id );
|
441 |
}
|
442 |
|
516 |
$perc = 100 * $frac;
|
517 |
|
518 |
// Image Magick class?
|
519 |
+
if ( false && class_exists( 'Imagick' ) && wppa_can_magick() && $type == 'none' ) {
|
520 |
|
521 |
+
try {
|
522 |
+
$im = new Imagick( $file );
|
523 |
+
$im->thumbnailImage( $frac * $img_attr[0], $frac * $img_attr[1] );
|
524 |
+
$iret = $im->writeImage( $thumbpath );
|
525 |
+
$im->destroy();
|
526 |
+
}
|
527 |
+
catch (Exception $e) {
|
528 |
+
wppa_log( 'err', 'Remake thumbnail raised exception: ', $e->getMessage());
|
529 |
+
}
|
530 |
if ( $iret ) {
|
531 |
wppa_log( 'fso', 'Magick class created ' . $thumbpath );
|
532 |
$done = true;
|
755 |
}
|
756 |
$out = array();
|
757 |
$err = 0;
|
758 |
+
|
759 |
+
try {
|
760 |
+
$run = exec( escapeshellcmd( $path . $command ), $out, $err );
|
761 |
+
}
|
762 |
+
catch (Exception $e) {
|
763 |
+
wppa_log( 'err', 'Exec imagick cmd raised exception: ', $e->getMessage());
|
764 |
+
}
|
765 |
|
766 |
$logcom = $command;
|
767 |
$logcom = str_replace( ABSPATH, '...', $logcom );
|
wppa-utils.php
CHANGED
@@ -38,6 +38,11 @@ global $blog_id;
|
|
38 |
$use_thumbfile = true;
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
41 |
// If in the cloud...
|
42 |
$is_old = wppa_too_old_for_cloud( $id );
|
43 |
if ( wppa_cdn( 'front' ) &&
|
38 |
$use_thumbfile = true;
|
39 |
}
|
40 |
|
41 |
+
// If 360 or flat pano, do not use the cdn version
|
42 |
+
if ( wppa_get_photo_item( $id, 'panorama' ) ) {
|
43 |
+
$use_thumbfile = true;
|
44 |
+
}
|
45 |
+
|
46 |
// If in the cloud...
|
47 |
$is_old = wppa_too_old_for_cloud( $id );
|
48 |
if ( wppa_cdn( 'front' ) &&
|
wppa.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: WP Photo Album Plus
|
4 |
* Description: Easily manage and display your photo albums and slideshows within your WordPress site.
|
5 |
-
* Version: 7.6.01.
|
6 |
* Author: J.N. Breetvelt a.k.a. OpaJaap
|
7 |
* Author URI: http://wppa.opajaap.nl/
|
8 |
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
|
@@ -24,7 +24,7 @@ global $wp_version;
|
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
global $wppa_revno; $wppa_revno = '7601'; // WPPA db version
|
27 |
-
global $wppa_api_version; $wppa_api_version = '7.6.01.
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|
2 |
/*
|
3 |
* Plugin Name: WP Photo Album Plus
|
4 |
* Description: Easily manage and display your photo albums and slideshows within your WordPress site.
|
5 |
+
* Version: 7.6.01.005
|
6 |
* Author: J.N. Breetvelt a.k.a. OpaJaap
|
7 |
* Author URI: http://wppa.opajaap.nl/
|
8 |
* Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
|
24 |
|
25 |
/* WPPA GLOBALS */
|
26 |
global $wppa_revno; $wppa_revno = '7601'; // WPPA db version
|
27 |
+
global $wppa_api_version; $wppa_api_version = '7.6.01.005'; // WPPA software version
|
28 |
|
29 |
/* Init page js data */
|
30 |
global $wppa_js_page_data; $wppa_js_page_data = '';
|