• Maiti

    (@maiti)


    Hello, please help me with this problem – I’m upoading pictures to server folder and than attaching it to the post. But the script attaches only the original picture. What I need is that there would be also thumbnail, medium and large. What I need to change in the code to make manually create small, medium and large files and attach them to the post.

    here’s the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 8 replies - 1 through 8 (of 8 total)
  • esmi

    (@esmi)

    If you upload images via WordPress, these smaller images are created automatically.

    Thread Starter Maiti

    (@maiti)

    I need to uplad images not using wordpress interface
    and when I do it with the help of the code above it does not create it

    esmi

    (@esmi)

    I need to uplad images not using wordpress interface

    Why?

    Thread Starter Maiti

    (@maiti)

    because I use uploadify, and attach their code watermark

    esmi

    (@esmi)

    Then you will need to upload the various image sizes manually. Or you can look at writing your own multi-image-creation script but that’s not going to be easy.

    Thread Starter Maiti

    (@maiti)

    ok, what I need change in the code, that small, medium and large files attach to the post

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Vrefr

    (@vrefr)

    Did you try to upload all needed sizes and than attach all of them to the post?
    Like you attach original.
    Then to upload small and attach it in the same way? And same for medium and for large?

    Thread Starter Maiti

    (@maiti)

    yes, but when I upload and attach image to post with different sizes and with names. Example:
    9741540.jpg
    9741540-150×150.jpg
    these pictures just loaded separately from each other

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘add attachment’ is closed to new replies.