strapi-plugin-react-editorjs icon indicating copy to clipboard operation
strapi-plugin-react-editorjs copied to clipboard

Why main image block without hash & ext?

Open thenaim opened this issue 2 years ago • 3 comments

image block after upload:

{
 "data" : {
    "alt": "signature.jpg",
    "formats": {"large": {"ext": ".jpg", "url": "http://minio:9000/strapi/large_image_2e0e164b2d.jpg",…},…}
    "height": 640,
    "mime": "image/jpeg",
    "size": 74.69,
    "url": "http://minio:9000/strapi/image_2e0e164b2d.jpg",
    "width": 1536,
 }
}

Expect Result with hash & ext:

{
 "data" : {
    "alt": "signature.jpg",
    "formats": {"large": {"ext": ".jpg", "url": "http://minio:9000/strapi/large_image_2e0e164b2d.jpg",…},…}
    "hash": "image_2e0e164b2d",
    "ext": ".jpg",
    "height": 640,
    "mime": "image/jpeg",
    "size": 74.69,
    "url": "http://minio:9000/strapi/image_2e0e164b2d.jpg",
    "width": 1536,
 }
}

I'm not exactly sure is strapi passing hash & ext parameters in this line or not. @melishev, What do you think?

ps: formats types all with hash & ext

thenaim avatar Jun 08 '22 13:06 thenaim

@thenaim @melishev I have fixed this issue in PR #45 but... seem it's too long for reviewing?

nhvu1988 avatar Jun 16 '22 03:06 nhvu1988

@melishev, any news on this?

thenaim avatar Jun 22 '22 18:06 thenaim

@melishev, any news on this?

It seems he is not maintaining this plugin anymore.

SalahAdDin avatar Oct 08 '22 22:10 SalahAdDin