Plugin Directory

Changeset 3347913


Ignore:
Timestamp:
08/21/2025 06:57:04 AM (7 months ago)
Author:
stockpack
Message:

Added support for big image size threshold for unsplash

Location:
stockpack/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stockpack/trunk/readme.txt

    r3312296 r3347913  
    33Tags: stock images, adobe stock, unsplash, getty, istock, pixabay, pexels
    44Requires at least: 4.6
    5 Tested up to: 6.8.1
    6 Stable tag: 3.4.7
     5Tested up to: 6.8.2
     6Stable tag: 3.5.0
    77License: GPL
    88License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    3939* Automatic caption fill in to be in line with licensing requirements
    4040* Set custom filename prior to the upload
    41 * Compatible with Gutenberg, [Elementor](https://elementor.com),[Bricks](https://bricksbuilder.io/), [Divi](https://www.elegantthemes.com/gallery/divi/), [Beaver Builder](https://www.wpbeaverbuilder.com), [Visual Composer](https://visualcomposer.com), [Avada Fusion Builder](https://theme-fusion.com/products/fusion-builder), [Oxygen Builder](https://oxygenbuilder.com), [WPBakery](https://wpbakery.com/), [Thrive Themes](https://thrivethemes.com/),
    42 [Breakdance](https://breakdance.com/)
     41* Compatible with Gutenberg, [Elementor](https://elementor.com),[Bricks](https://bricksbuilder.io/), [Divi](https://www.elegantthemes.com/gallery/divi/), [Beaver Builder](https://www.wpbeaverbuilder.com), [Visual Composer](https://visualcomposer.com), [Avada Fusion Builder](https://theme-fusion.com/products/fusion-builder), [Oxygen Builder](https://oxygenbuilder.com), [WPBakery](https://wpbakery.com/), [Thrive Themes](https://thrivethemes.com/), [Breakdance](https://breakdance.com/)
    4342* Compatible with [WPML](https://wpml.org)
    4443* Featured image caption
     
    134133
    135134== Changelog ==
     135
     136= 3.5.0 =
     137Add big image threshold compatibility with download (only supported by Unsplash) to reduce image size.
    136138
    137139= 3.4.7 =
  • stockpack/trunk/src/class-stockpackquery.php

    r3151287 r3347913  
    306306            do_action( 'stockpack_before_attachment_download', $provider,$new_filename, $media_id, $must_license );
    307307
     308            $big_image_threshold = (int) apply_filters( 'big_image_size_threshold', 2560, array( 0, 0 ), '', 0 );
     309
    308310            $image = $this->call( 'GET', 'images/download',
    309311                array(
    310312                    'id'           => $media_id,
    311313                    'must_license' => $must_license,
    312                     'provider'     => $provider
     314                    'provider'     => $provider,
     315                    'min_width'=> $big_image_threshold,
     316                    'min_height'=> $big_image_threshold,
    313317                )
    314318            );
  • stockpack/trunk/stockpack.php

    r3312296 r3347913  
    66 * Author: Derikon Development
    77 * Author URI: https://derikon.com/
    8  * Version:3.4.7
     8 * Version:3.5.0
    99 * Text Domain: stockpack
    1010 * Domain Path: /languages
Note: See TracChangeset for help on using the changeset viewer.