Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IThumbService.cs

using Nop.Core.Domain.Media;

namespace Nop.Services.Media;

/// 
/// Picture thumb service interface
/// 
public partial interface IThumbService
{
    /// 
    /// Get a picture thumb local path
    /// 
    /// Picture URL
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the local picture thumb path
    /// 
    Task GetThumbLocalPathAsync(string pictureUrl);

    /// 
    /// Get a value indicating whether some file (thumb) already exists
    /// 
    /// Thumb file path
    /// Thumb file name
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the check result
    /// 
    Task GeneratedThumbExistsAsync(string thumbFilePath, string thumbFileName);

    /// 
    /// Save a picture thumb
    /// 
    /// Thumb file path
    /// Thumb file name
    /// MIME type
    /// Picture binary
    /// A task that represents the asynchronous operation
    Task SaveThumbAsync(string thumbFilePath, string thumbFileName, string mimeType, byte[] binary);

    /// 
    /// Get picture (thumb) local path
    /// 
    /// Filename
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the local picture thumb path
    /// 
    Task GetThumbLocalPathByFileNameAsync(string thumbFileName);

    /// 
    /// Get picture (thumb) URL 
    /// 
    /// Filename
    /// Store location URL; null to use determine the current store location automatically
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the local picture thumb path
    /// 
    Task GetThumbUrlAsync(string thumbFileName, string storeLocation = null);

    /// 
    /// Delete picture thumbs
    /// 
    /// Picture
    /// A task that represents the asynchronous operation
    Task DeletePictureThumbsAsync(Picture picture);
}