Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create string hash in url media image #1

Open
magiccart opened this issue Mar 1, 2023 · 1 comment
Open

Create string hash in url media image #1

magiccart opened this issue Mar 1, 2023 · 1 comment

Comments

@magiccart
Copy link
Contributor

No description provided.

@magiccart
Copy link
Contributor Author

magiccart commented Mar 1, 2023

Refer: https://magento.stackexchange.com/questions/315646/how-to-get-cache-images-path
File vendor/magento/module-catalog/Model/View/Asset/Image.php
 array(9) { ["image_height"]=> string(5) "h:160" ["image_width"]=> string(5) "w:160" ["background"]=> string(14) "rgb255,255,255" ["angle"]=> string(7) "r:empty" ["quality"]=> string(4) "q:80" ["keep_aspect_ratio"]=> string(12) "proportional" ["keep_frame"]=> string(7) "noframe" ["keep_transparency"]=> string(12) "transparency" ["constrain_only"]=> string(15) "doconstrainonly"
} 
string: h:525_w:525_rgb255,255,255_r:empty_q:80_proportional_noframe_transparency_doconstrainonly

        return $this->encryptor->hash(
            implode('_', $this->convertToReadableFormat($this->miscParams)),
            Encryptor::HASH_VERSION_MD5
        );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant