ZenphotoCMS Forum
Thumbcrop thumbnails - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Thumbcrop thumbnails (/thread-7639.html)



Thumbcrop thumbnails - Largo - 2010-09-20

Hello,

When in ACP I try to crop thumbnails and our photo is big the photo is out of box in browser. That not exists when I choose from options different values than 'Size of photo' and 'Width' or 'Height'.

This two options get dimensions from photo, if photo have 3000x2500px then site look's not good. Is there any fix for this?




Thumbcrop thumbnails - acrylian - 2010-09-20

What theme? Maybe post a link to an example? (And what is ACP?)




Thumbcrop thumbnails - Largo - 2010-09-20

ACP - Admin Control Panel ;-)

No theme is required, upload big photo and set Image Size to 1500px, result will be not nice :-) Maybe set width to 100% width of page.




Thumbcrop thumbnails - acrylian - 2010-09-20

I still don't understand you issue. So if the image does not fit your theme (whatever that is) you will have to adjust that.




Thumbcrop thumbnails - Largo - 2010-09-21

Hi,

If still not understand the problem I send You a fix, I think You understand what is that fix mean:

In zp-core/admin-thumbcrop.php
Find:

`

            jQuery(window).load(function(){

                jQuery('#cropbox').Jcrop({

                    onChange: showPreview,

                    onSelect: showPreview,

                    onChange: showCoords,

                    setSelect: [ , , ,  ],

                    bgOpacity:   .4,

                    bgColor:     'black',

                    aspectRatio:  / ,

                    boxWidth: boxWidth, /* Fix to corrent width of page in other resolutions */

                    trueSize: [,]

                    });

            });

        `

Move under div ID - 'content'

Next, before:

jQuery(window).load(function(){

Add:

var boxWidth = Math.round($('#content').width() - ( + 96));

In same function add at the end of function:

boxWidth: boxWidth, / Fix to corrent width of page in other resolutions /
trueSize: [,]

And check resolution for very big photos - page did not out of browser box :-) I think You understand what I'am done.




Thumbcrop thumbnails - acrylian - 2010-09-21

Ok, I think I know understand the issue. We will try to reproduce this asap. Meanwhile, please open a ticket.