Resize Automatically?

Million Dollar Script Forums General Resize Automatically?

This topic contains 5 replies, has 4 voices, and was last updated by  Deen Foxx 5 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #628

    Beth
    Participant

    I see a setting under Main Config that says “Resize uploaded pixels automatically?” which says if you select “Yes” then Uploaded pixels will be resized to fit in to the blocks. I just realized that will use as many blocks as necessary based on the size of the image.

    Is there any way to crop the uploaded image to only fit in one block?

    I’m not allowing users to select pixels and they can only purchase one block per order.

    #629

    Ryan
    Keymaster

    Hmm, I don’t think theres a way to crop the image into one block. I think you would probably have to go into the code and modify it to do what you like in order to accomplish that. If you have any troubles I can probably check the code out and see if I can help find where to modify when I get a chance.

    #633

    Beth
    Participant

    Thanks Ryan. Any insights you can provide pointing me in the right direction in the code would be HUGE!

    Thanks! :cheer:

    #634

    Ryan
    Keymaster

    Sorry for taking so long to check this out. I have been busy with things.

    You probably want to mess with the function saveImage in /includes/functions.php. In particular the switch statement where it has all those imagecopyresampled lines.

    You can find more info on that function here: http://php.net/manual/en/function.imagecopyresampled.php

    You might also have to modify some other functions somewhere, but I am not really sure where. Maybe I can add that as a feature request for a future version if I ever get there.

    #717

    Ben
    Participant

    Hi bplazar,

    Did you come right with this? I am also looking at similar feature and your assistance will be appreciated. Thanks

    #793

    Deen Foxx
    Participant

    I also need this feature. Any success by anyone yet?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.