10up / classifai

Supercharge WordPress Content Workflows and Engagement with Artificial Intelligence.
https://classifaiplugin.com
GNU General Public License v2.0
568 stars 52 forks source link

For Generated image > Getting Error: Input data is not a valid image. #707

Open qasumitbagthariya opened 6 months ago

qasumitbagthariya commented 6 months ago

Describe the bug

If we generate image using classifai feature and try to generate Descriptive text,Image tags, Smart thumbnail, Scan image for text is not getting generate.

Steps to Reproduce

  1. Goto media > Generated image
  2. Generate any one image and Import in to media library
  3. Goto attachment details and try to click and generate (Descriptive text,Image tags, Smart thumbnail, Scan image)
  4. See error

Screenshots, screen recording, code snippet

Screenshot at Feb 09 19-57-03 Generate_image_scan not working genrated-image-issue

Environment information

WordPress information

No response

Code of Conduct

Sidsector9 commented 4 months ago

@qasumitbagthariya I am unable to reproduce this issue. I generated the image using OpenAI Dall.E and then used MS Azure Vision to generate image description and image tags.

Please watch the video below:

Image description generation

https://github.com/10up/classifai/assets/17757960/ea5820be-cc69-41cd-a2cc-b76d234c4cdf

Image tags generation

https://github.com/10up/classifai/assets/17757960/46bda49b-5e62-482f-9f50-b92e14f584b2

Sidsector9 commented 4 months ago

I am able to reproduce this issue on an instawp site. However, this issue is also occurring for some images that I am uploading manually.

For example:

Locally with ngrok, it works in every case. @qasumitbagthariya @QAharshalkadu