+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Resize by height

  1. #1

    Resize by height

    Hello. In script 4.1 you solved the crop issue but just for big images. The thumbnails are still cropped, starting from the image upload till the final ad. How can be stop using function _resize($numWidth, $numHeight)
    and use instead function resizeToHeight($numHeight) - i suppose that this function will allow resize based on height. thanks

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    Hello,

    You can try fix it the following way:

    - open the file libs/upload/upload.php
    - go to method create_scaled_image()
    - find this code (line ~ 129):

    PHP Code:
    Only registered members can view the code
    and change it to:

    PHP Code:
    Only registered members can view the code
    Pay your attention to the third parameter in the method resize.

  3. #3
    Quote Originally Posted by Vladimir View Post
    Hello,

    You can try fix it the following way:

    - open the file libs/upload/upload.php
    - go to method create_scaled_image()
    - find this code (line ~ 129):

    PHP Code:
    Only registered members can view the code
    and change it to:

    PHP Code:
    Only registered members can view the code
    Pay your attention to the third parameter in the method resize.
    Have replaced the code but is not working. added 2 image, first after upload disapears and the second start to upload than at 100% stucks and the empty box (add images) starts to show a counter
    i was talking about what you see in imageUntitled.jpg.
    so, starting from the moment we add a portrait image (tall image), having it not croped, as the end result wich will show it not croped. thanks

  4. #4
    have tried again this in the upgraded script and no luck. see in the image how bad it looks with laptop sean incomplete (i had to modify them in photoshop to have them uncut)
    thumbs.jpg

  5. #5
    what else can i try to fix this? thanks

  6. #6
    I also think this must be fixed. If in detailed description photos appear not cropped, in short description images are cropped. Why not the same function here too? Some images will look very bad. I presume is just a small change

  7. #7
    Thumbnails should have the same height to looks good in short view places (boxes, grids) but big images can be different.

    Maybe i don't understood something from the topic, if so please clarify.

    As i understand what you want is to disable crop function for the thumbnails.

    To do it open upload.php (as in Vladimir's post above)

    find function and make changes

    Code:
    Only registered members can view the code.

  8. #8
    it is not working. i add 2 images. a portrait and a landscape. thei look ok now (portrait is sean in full). click on upload and the portrait image starts uploading than it disapears and i receive the ok message and the landscape starts to upload and is stuked like that

  9. #9

    Thumbnail disable

    Indeed is not working. When i click upload i just get the number of enabled photos increasing ( i waiting till 2300 then i stopped) See the image in atachement

    crop.jpg

    Yes. We want to disable crop function for thumbnails in short forms. If user will upload photos in portrait mode they will look strange if cropped I attach a snapshot from gumtree. You will see that first and last photos are portrait type and are not cropped. Inside that square looks nice

    gumtree demo.jpg

  10. #10
    Will this problem be fixed in version 4.2?

+ Reply to Thread