• Resolved tinatunasandwich

    (@tparkmedia)


    Hello,

    I have a form on my site that logged in users can submit content to, including an image. The image downloads directly into my media library and is set as the featured image on the post automatically.

    I have tried setting the “images uploaded within a page/post” to 500 width and 500/9999/0 height.
    And the “images loaded directly to media library” as 500 width and 500/9999/0 height.

    I tested this with each setting (3 settings each for page/post and media library setting) and it’s not working.

    Please help!

    https://sugarfreegallery.com/

    The form is in the menu as titled “Submit”.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    I believe what you need is the “images uploaded elsewhere” setting. Even though those images might end up as featured images for a post, it’s not using the normal post editor and parameters, so Imsanity likely detects it as coming from “elsewhere”

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Nope, doesn’t work. Any more thoughts? I would really love for this to work. =T

    Screenshots:
    https://snag.gy/OJyVdE.jpg
    https://snag.gy/s8YvQx.jpg

    Thank you.

    Plugin Author nosilver4u

    (@nosilver4u)

    Please describe exactly what you are doing, step by step, to get those results. Is it a new image, are you using the Search Images button, etc.

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Hello!

    Here is what I did step by step:

    1. I set the settings like this:
    screenshot of settings
    2. Then submitted forms from the main menu on my site with images sized: 684×1024 and 800×800
    screenshot of form
    3. The form is set up to save the uploaded images to my media library on my server. Here are the uploaded images in my media folder:
    screenshot of image 1
    screenshot of image 2
    Image links:
    https://sugarfreegallery.com/wp-content/uploads/ninja-forms/8/Chocolate-Chia-Pudding-with-Strawberry-Compote-3-683×1024.jpg
    https://sugarfreegallery.com/wp-content/uploads/ninja-forms/8/butternut-squash-hummus-05-3.jpg

    As you can see the images are not resized.

    Also, I tested the image settings one by one and now they are all at 500×500.

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Oops images are so small.

    Settings:
    screenshot of settings

    Submitted through form on site frontend:
    screenshot of site menu
    screenshot of submission form

    Image details in media library:
    choc chia pudding 683x1024
    butternut hummus 800x800

    Plugin Author nosilver4u

    (@nosilver4u)

    Hmm, I tested those two images myself, and they both shrink to 500px. I thought perhaps it was an issue with GD, as it sometimes makes images larger (in filesize) when scaling them down, which prevents Imsanity from saving the resized images.
    But that didn’t pan out either…

    My best guess at this point is that your form is bypassing the usual upload “hooks” done by WordPress when adding an image to the library. What are you using for those upload forms?

    Thread Starter tinatunasandwich

    (@tparkmedia)

    I’m using Ninja Forms plugin for the form.

    What is GD?

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Maybe this is the Ninja Form plugin issue?

    Plugin Author nosilver4u

    (@nosilver4u)

    GD is the image library generally used by WordPress for resizing images, and Imsanity just uses whatever WordPress is using.
    I suspect it might be something Ninja Forms needs to fix/change. I’ll see if I can take a look myself, but it would be worth asking them to look into the issue. In particular, ask them if their uploads trigger the wp_handle_upload “filter”.

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Ok, I’ll reach out to them today.

    Hello,
    seems like there is a problem since 4.9.2! Bulk Resize Images doesn’t work. Nothing happens, tried with 1 image too, without success ?? … I use the default WP Media library. (No warning or error messages!)

    Plugin Author nosilver4u

    (@nosilver4u)

    @madzzoni, there isn’t a problem with 4.9.2, please start a new thread and describe what you mean by nothing happens.

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Hello, ok so this is the response I got from Ninja Forms plugin:

    Hello,

    The Ninja Forms File Uploads addon does not use the wp_handle_upload function and instead has a custom process to save the file. This is most likely the reason that the plugin that is depending on this function is not working with the plugin. You might want to ask this question on our developer community slack. https://developer.ninjaforms.com/slack/

    I went ahead and signed up for their developer slack. Should I ask the same question on their slack or.. ?

    Plugin Author nosilver4u

    (@nosilver4u)

    Go ahead and ask on there. I don’t have a lot of time right now, but if you’re still stuck, post an update on what you find out.

    Thread Starter tinatunasandwich

    (@tparkmedia)

    Another support dude just got back to me today morning with this:

    The plugin uploads the file to the Media Library with a combination of

    wp_insert_attachment ()
    wp_generate_attachment_metadata()
    wp_update_attachment_metadata()

    The last function should be where Imsanity hooks in to resize.

    That being said, I’ll do some testing with Imsanity and see what I can spot.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Not working with WordPress 4.9.2’ is closed to new replies.