Member
Member
Largo   2010-09-20, 13:15
#1

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?

Administrator
Administrator
acrylian   2010-09-20, 13:23
#2

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

Member
Member
Largo   2010-09-20, 13:45
#3

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.

Administrator
Administrator
acrylian   2010-09-20, 14:06
#4

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.

Member
Member
Largo   2010-09-21, 09:46
#5

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.

Administrator
Administrator
acrylian   2010-09-21, 12:36
#6

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.