The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Getting an image error message when I edit a post

    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Getting an image error message when I edit a post

    Post by Richardr Sat 11 Dec - 1:03

    I tried to edit a post. The post contains an image. After I hit "send" I got the following error:

    Twitter Image URL : Invalid image format. The image must be in JPG, PNG or GIF format.

    Facebook Image URL : Invalid image format. The image must be in JPG, PNG or GIF format.

    The image is not from either twitter or FB. I then uploaded the image to imageshack which converted it to jpg, but the error persisted.

    Why does editing cause this issue, and how can it be solved?

    Thanks

    (we use phpBB2)


    Last edited by Richardr on Sun 12 Dec - 4:36; edited 2 times in total
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3231
    Reputation : 248
    Language : English, Italian, French
    Location : Italy

    Solved Re: Getting an image error message when I edit a post

    Post by Niko Sat 11 Dec - 2:44

    Dear @Richardr

    can we get the links you are trying to use? that would help understanding the problem Wink

    Thanks :rose:
    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Re: Getting an image error message when I edit a post

    Post by Richardr Sat 11 Dec - 2:58

    Niko likes this post

    Niko
    Niko
    Helper
    Helper


    Male Posts : 3231
    Reputation : 248
    Language : English, Italian, French
    Location : Italy

    Solved Re: Getting an image error message when I edit a post

    Post by Niko Sat 11 Dec - 3:37

    I think the issue may be with the ending of the link Embarassed
    try with this instead, removing the final
    Code:
    ?v=1633617093&w=929&h=523

    Code:
    https://image.cnbcfm.com/api/v1/image/106954240-1633617064262-gettyimages-533782804-90774123.jpeg
    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Re: Getting an image error message when I edit a post

    Post by Richardr Sat 11 Dec - 3:40

    Thanks, but that didn't solve it.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Getting an image error message when I edit a post

    Post by skouliki Sat 11 Dec - 5:43

    Hello

    Did you try to save the image to desktop then upload it with servimg using the button from editor to your forum?

    Getting an image error message when I edit a post  4d98f810

    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Re: Getting an image error message when I edit a post

    Post by Richardr Sat 11 Dec - 5:56

    skouliki wrote:Hello

    Did you try to save the image to desktop then upload it with servimg using the button from editor to your forum?
    Hi skouliki. No, we did not. It is very rare for this to happen with a post. Simply using the original image url works 99.9% of the time.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Getting an image error message when I edit a post

    Post by skouliki Sat 11 Dec - 9:47

    if you read facebook support or Twitter you will see that they support specific image files and image sizes

    for your forum if you upload images with servimg they are saved in our system
    if you post direct images you might have third part issues depending on the site

    example https://help.forumotion.com/t157936-information-the-image-hosting-company-tinypic-is-closing-its-doors?highlight=image



    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Getting an image error message when I edit a post

    Post by SLGray Sat 11 Dec - 10:54

    Getting an image error message when I edit a post  106954240-1633617064262-gettyimages-533782804-90774123Are you using the insert an image button in the editor?



    Getting an image error message when I edit a post  Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Re: Getting an image error message when I edit a post

    Post by Richardr Sat 11 Dec - 22:29

    skouliki wrote:if you read facebook support or Twitter you will see that they support specific image files and image sizes

    Yes, but that image isn't from Twitter or Facebook. The url shows it's from gettyimages.

    https://image.cnbcfm.com/api/v1/image/106954240-1633617064262-gettyimages-533782804-90774123.jpeg?v=1633617093&w=929&h=523

    So why does the error mention Twitter and Facebook?
    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Re: Getting an image error message when I edit a post

    Post by Richardr Sat 11 Dec - 22:31

    SLGray wrote:Are you using the insert an image button in the editor?

    Yes.
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3231
    Reputation : 248
    Language : English, Italian, French
    Location : Italy

    Solved Re: Getting an image error message when I edit a post

    Post by Niko Sun 12 Dec - 2:12

    Sorry @Richardr I actually though in the first place you were trying to use the above-mentioned image in the SEO tools that have been recently announced, but I just realized you weren't using them - or that maybe there is an automatic fill Embarassed

    edit: okay I managed to reproduce your problem, and it was. To reproduce it:
    1. Posted a topic with that image
    2. Tried to edit the message
    3. It doesn't complete the saving because I get this:

      Getting an image error message when I edit a post  Debug110


    The problem lies in the fact that the editor automatically fills the SEO tools with the first image of the first post, which in your case is
    Code:
    https://image.cnbcfm.com/api/v1/image/106954240-1633617064262-gettyimages-533782804-90774123.jpeg?v=1633617093&w=929&h=523
    , but due to the parameters at the end, the SEO tools (forumotion side) do not recognize it as an image Wink

    So you have two options:

    1. Edit the topic and manually remove the ending (as I told you in a previosu message) from the links added in the SEO tools:

      Getting an image error message when I edit a post  Debug210

    2. (for the next topics) directly use links of images that end with the extension (png/jpg/jpeg/gif) etc... and not with parameters (i.g. ?v=1633617093&w=929&h=523)


    I tried and it worked for me after editing the SEO tools autofilled images Wink

    Richardr, skouliki and TonnyKamper like this post

    avatar
    Richardr
    Forumember


    Posts : 413
    Reputation : 0
    Language : english

    Solved Re: Getting an image error message when I edit a post

    Post by Richardr Sun 12 Dec - 4:35

    Thanks Niko. It worked. Very good

    Niko likes this post

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Getting an image error message when I edit a post

    Post by skouliki Sun 12 Dec - 7:34

    Thanks @Niko

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules

    Niko likes this post


      Current date/time is Sun 22 Sep - 16:24