Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified css/images/sample.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/cloudinary.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion php/delivery/class-lazy-load.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public function register_settings( $pages ) {
'type' => 'lazyload_preview',
'title' => __( 'Preview', 'cloudinary' ),
'slug' => 'lazyload_preview',
'default' => CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE . 'w_600/sample.jpg',
'default' => CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE . 'w_600/leather_bag.jpg',
),
),
),
Expand Down
4 changes: 2 additions & 2 deletions php/templates/transformation-preview-video.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

$url = CLOUDINARY_ENDPOINTS_PREVIEW_VIDEO;
$src = $url . '/dog.mp4';
$src = $url . '/sailing_boat.mp4';
$preview_src = $url . 'w_600/';
$sample = '/dog.mp4';
$sample = '/sailing_boat.mp4';
$script_data = array(
'url' => $url,
'preview_url' => $preview_src,
Expand Down
4 changes: 2 additions & 2 deletions php/templates/transformation-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

$url = CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE;
$src = $url . '/sample.jpg';
$src = $url . '/leather_bag.jpg';
$preview_src = $url . 'w_600/';
$sample = '/sample.jpg';
$sample = '/leather_bag.jpg';
$script_data = array(
'url' => $url,
'preview_url' => $preview_src,
Expand Down
2 changes: 1 addition & 1 deletion php/ui/component/class-crops.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Crops extends Select {
* @var string
*/
protected $demo_files = array(
'sample.jpg',
'leather_bag.jpg',
'lady.jpg',
'horses.jpg',
);
Expand Down
4 changes: 2 additions & 2 deletions php/ui/component/class-image-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Image_Preview extends Component {
*
* @var string
*/
protected $demo_file = '/sample.jpg';
protected $demo_file = '/leather_bag.jpg';

/**
* Preview type.
Expand Down Expand Up @@ -204,7 +204,7 @@ protected function url( $struct ) {
protected function pre_render() {
$url = CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE;
$preview_src = $url . 'w_600/';
$sample = '/sample.jpg';
$sample = '/leather_bag.jpg';
$script_data = array(
'url' => $url,
'preview_url' => $preview_src,
Expand Down
2 changes: 1 addition & 1 deletion php/ui/component/class-lazyload-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function get_preloader_image() {
protected function makePlaceholder( $type ) {
$placeholder = $this->get_part( 'img' );
$transformation = Api::generate_transformation_string( $this->lazyload->get_placeholder_transformations( $type ), 'image' );
$placeholder['attributes']['src'] = str_replace( 'sample', $transformation . '/sample', $this->config['lazyload_preview'] );
$placeholder['attributes']['src'] = str_replace( 'leather_bag', $transformation . '/leather_bag', $this->config['lazyload_preview'] );
$placeholder['render'] = true;
$box = $this->make_sized_image_box( 100, $placeholder );
$box['attributes']['id'] = 'placeholder-' . $type;
Expand Down
4 changes: 2 additions & 2 deletions php/ui/component/class-video-preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Video_Preview extends Image_Preview {
*
* @var string
*/
protected $demo_file = '/dog.mp4';
protected $demo_file = '/sailing_boat.mp4';

/**
* Enqueue scripts and styles.
Expand Down Expand Up @@ -61,7 +61,7 @@ protected function preview( $struct ) {
protected function pre_render() {
$url = CLOUDINARY_ENDPOINTS_PREVIEW_VIDEO;
$preview_src = $url . 'w_600/';
$sample = '/dog.mp4';
$sample = '/sailing_boat.mp4';
$script_data = array(
'url' => $url,
'preview_url' => $preview_src,
Expand Down
Binary file modified src/css/images/sample.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/js/components/global-transformations.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const GlobalTransformations = {
type
);
samplePlayer.source( {
publicId: 'dog',
publicId: 'sailing_boat',
transformation: transformations,
} );
self._clearLoading( type );
Expand Down
2 changes: 1 addition & 1 deletion ui-definitions/settings-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
'type' => 'image_preview',
'title' => __( 'Preview', 'cloudinary' ),
'slug' => 'image_preview',
'default' => CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE . 'w_600/sample.jpg',
'default' => CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE . 'w_600/leather_bag.jpg',
'taxonomy_field' => array(
'context' => 'image',
'priority' => 10,
Expand Down
2 changes: 1 addition & 1 deletion ui-definitions/settings-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
'type' => 'breakpoints_preview',
'title' => __( 'Preview', 'cloudinary' ),
'slug' => 'breakpoints_preview',
'default' => CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE . 'w_600/sample.jpg',
'default' => CLOUDINARY_ENDPOINTS_PREVIEW_IMAGE . 'w_600/leather_bag.jpg',
),
),
),
Expand Down