Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 [Solved] Resizing pictures in slider
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

[email protected]
VP-CART New User

149 Posts

Posted - November 18 2015 :  10:49:23  Show Profile  Reply with Quote
Hi,
I like the fact that the slider, itself resizes when the browser is resized but the pictures in the slider do not resize. This creates a problem when I am designing for a widescreen monitor and the site is visited by a monitor of lower resolution.

Is there something I can add to css to resize the pictures in the slider corresponding with the resolution?

Edited by - [email protected] on November 25 2015 12:30:06

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 18 2015 :  11:04:07  Show Profile  Reply with Quote
Hello there,

Unfortunetaly i can''t replicate this.

Have change my screen resolution with 800 X 600, 1024 X 768, 1280 X 1024, and image slider automaticaly resize. FYI I used newest chrome version.

Also please look at online screen resolution checker below:

http://quirktools.com/screenfly/#u=http%3A//demo800.vpasp.com&w=1024&h=600

Daniel.

Edited by - danielrichardson on November 18 2015 11:06:10
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 18 2015 :  11:48:16  Show Profile  Reply with Quote
Not sure what I''m doing wrong then
This is our (testing area) site using quirktools.
As you adjust sizes, the slider will adjust but the images get cut off
http://quirktools.com/screenfly/#u=http%3A//fcsurplus.ca/shopping2&w=1200&h=600

I''ll have to look into it further
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 18 2015 :  11:51:37  Show Profile  Reply with Quote
Ahh, ok, it is resizing (as best it can) but just not effectively doing well at 1024.
Perhaps this should just be a matter of designing for 1024 and letting it enlarge for bigger sizes
Go to Top of Page

FCS-Webmaster
VP-CART New User

Canada
120 Posts

Posted - November 18 2015 :  13:41:58  Show Profile  Visit FCS-Webmaster's Homepage  Reply with Quote
Daniel

Thanks for sharing the handy Quirk tool. I''ve bookmarked it.


We tried it in Firefox
http://fcsurplus.com/test/1024x768-sliders-getting-cut-off.jpg
and Chrome
http://fcsurplus.com/test/1024x768-sliders-getting-cut-off-chrome.jpg
on both Windows XP and a Windows 10 machine and got similar results with the images not scaling.

When I try Quirk Tools Screenfly I get something similar as well.
http://fcsurplus.com/test/1024x768-sliders-getting-cut-off-quirk-tools-screenfly-firefox.jpg

If it was only 1 computer I could see this being an issue, but I''ve tried it on 2 computers with a total of 5 different browsers.
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - November 18 2015 :  16:17:03  Show Profile  Visit serjtankian's Homepage  Reply with Quote
strange, i tried and its scaled, see below for my screenshot:

http://postimg.org/image/nepvu1cjb/

im using latest google chrome






*serj*
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 19 2015 :  01:15:19  Show Profile  Reply with Quote
@FCS-Webmaster,

Unfortuneately i can''t see your pics attachment. Please reupload it.

Thanks.
Go to Top of Page

bryan23
Starting Member

Philippines
7 Posts

Posted - November 19 2015 :  03:42:57  Show Profile  Reply with Quote
Hi there,

i have tested it and figured it out how to fix it. try to add this code at the bottom of you main-responsive.css

@media (max-width: 1024px){
.lower-header.container {
padding: 0px;
}
}

hope that works.

Brent
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - November 24 2015 :  06:28:57  Show Profile  Reply with Quote
i have tested and works fine. thanks Brent.
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 24 2015 :  11:12:18  Show Profile  Reply with Quote
Can you give me a URL to see it in action?
I''ve been trying to add this code but not seeing changes in resizing the pictures in the slider.
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 24 2015 :  11:15:46  Show Profile  Reply with Quote
I''m thinking there might be some confusion.
The slider, itself, resizes fine. It''s the pictures that are getting cut off.
For example, one image might have some text on the left hand side that displays properly on a 1200+ resolution but when resized to 1024, the slider will resize but the picture inside it doesn''t so the text in the picture is cut off.
Go to Top of Page

bryan23
Starting Member

Philippines
7 Posts

Posted - November 24 2015 :  22:15:41  Show Profile  Reply with Quote
Hi there,

try to add this css code :
.camera_target .cameraCont .cameraSlide img {
max-width: 100% !important
margin: auto !important;
}

this will overwrite the css of the cameraslider style.

let me know if this works on your end.

Brent
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 25 2015 :  12:29:42  Show Profile  Reply with Quote
Fantastic!
If anyone else is looking to acheive the same effect, use Bryan''s code.
(There is one missing semi-colon that will prevent it from working so I will repost)

.camera_target .cameraCont .cameraSlide img {
max-width: 100% !important;
margin: auto !important;
}

I put it in /common/cameraslider/camera.css at the bottom
Go to Top of Page

[email protected]
VP-CART New User

149 Posts

Posted - November 25 2015 :  15:14:30  Show Profile  Reply with Quote
I took what Bryan suggested and elaborated.
Bryan''s solution works but may cause images to be skewed while resizing (width adjusts nicely but since the height is constricted, it skews the picture)

Here are the changes I made to have both the slider itself, and images inside stay proportional while resizing.

Instructions for adjusting camera slider height and keep your pictures proportionate while resizing.
(Obviously make a back up of camera, camera.min.js, camera.css before commencing)

*********Only make these changes if you don''t want your slider to be as tall as VPASP set them. If you are fine with the size, do not alter these****

Change these values in camera.js
(around line 30)

(the default value is 50%)
height: ''100%'', //here you can type pixels (for instance ''300px''), a percentage (relative to the width of the slideshow, for instance ''50%'') or ''auto''

(around line 48)
(the default value is 200px)
minHeight: ''150px'', //you can also leave it blank


Make the same changes as above in: camera.min.js
(do a search for:
height:"50%",imagePath:"images/",hover:true,loader:"pie",loaderColor:"#eeeeee",loaderBgColor:"#222222",loaderOpacity:.8,loaderPadding:2,loaderStroke:7,minHeight:"200px") and replace height and minHeight to the same values as you changed in the above file.
****end of height alteration****

In camera.css, find
.camera_fakehover {
height: 100%;
min-height: 60px;
position: relative;
width: 100%;
z-index: 1;
}

change to:
.camera_fakehover {
display: block;
width: 100% !important;
height: 100% !important;
min-height:60px;
max-height:150px; //whatever maximum height you want
z-index: 1;
}

and add this entry to the bottom of the file


.camera_target .cameraCont .cameraSlide img {
display: block;
width: 100% !important;
height: auto !important;
margin: auto !important;
}
Go to Top of Page

RainHarvest313
Starting Member

USA
7 Posts

Posted - February 01 2017 :  15:45:45  Show Profile  Visit RainHarvest313's Homepage  Reply with Quote
Hello all,
I know this thread has been marked "solved", but I''ve tried updating the camera and camera.min.js files per sunshore''s suggestions below, along with the modifications/advice from bryan23 and serjtankian.

The issue I''m having may even be unique. The problem is primarily with mobile devices with the tall and narrow display. When displaying the banner, these devices display it the worst. The image in the banner gets skewed and stretched out much taller than it should be. Even when you turn the device 90 degrees so that it is wide, not tall, the banner image is still stretched out taller than native (not quite as bad when tall, but still noticeable). I''ve played with different height values and units in the Layout Manager, to no avail. Is there a way to fix this mobile-responsive display dilemma?

Tanks a lot,
D Man Dan
Go to Top of Page

danielrichardson
VP-CART Super User

Australia
276 Posts

Posted - February 10 2017 :  06:59:42  Show Profile  Reply with Quote
@RainHarvest313, please add the following code in in the common/cameraslider/camera.css

@media (max-width: 500px) {
.camera_wrap { height: auto !important; min-height: 100px; }
.cameraSlide img { height: 100% !important; width: 100% !important; margin-left: 0px !important; }
.camera_fakehover { min-height: 100px; }

Edited by - danielrichardson on February 10 2017 07:02:49
Go to Top of Page
Page: of 2
Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00