Jump to content

something starnge with 6.1.5 foundation


keat

Recommended Posts

When I enter in to a product the product image is huge and starting to pixelate.

Wondering if was anything to do with the work I've done today, I started to roll back.

If I install a clean 6.1.5 foundation skin, the problem is still there.

If I imnstall a 6.0.12 foundation skin, the problem goes away.

 

I'm confused ?

 

http://www.sterlingworkshopsupplies.co.uk/superglue.html

Link to comment
Share on other sites

scroll down to the superglue.

compare this with https://www.beal.org.uk/lubrication-cleaning/adhesives/superglue-20g.html

 

it's the same image

 

I cleared the lines

 

a.open-clearing #img-preview {
    width: 100%;
    height: 100%;
}

Delete the above.

  in cubecart.css, but this made things worse

 

I just jumped on to my PC in the office and can confirm that the image is only 165 x 500, so well withing the boundaries as foundation.

Link to comment
Share on other sites

I came back this morning and the issue has re-occured, so heaven only knows why it worked last night and doesn't again today.

Anyhow, after tinkering with the image, I figured out that it must have something to do with the layout of the image.

The image in question was 500 tall by 165 wide, and causes an issue with the display.

If I modify the image to be 500 x 500, then it displays correctly.

Any thoughts what's causing this ?

 

Link to comment
Share on other sites

If I delete the few lines, then it makes matters worse.

only if i refresh the browser each time, the image is displayed correctly.

This is the same with chrome or firefox.

Incidentally, I don't have this issue with Mican

I could fix this but I'd have to edit a whole load of images.

Link to comment
Share on other sites

If it makes matters worse, then I must conclude you may be deleting more than just:

cubecart.css, line 9-12:

a.open-clearing #img-preview {
    height: 100%;
    width: 100%;
}

Try this:

a.open-clearing #img-preview {
    height: 100%;
/*    width: 100%;  */
}

Making edits to the CSS file may require you to force the browser to reload page resources.

When you say, "having to refresh the browser each time," are you speaking of each product page (having a different image), or the same product page over and over?

I would also like for you to find these files and place them where indicated:

jquery.chosen.min.css -- put in /skins/foundation/css/

jquery.chosen.min.js -- put in /skins/foundation/js/vendor/

Link to comment
Share on other sites

With the 4 lines intact, the image displays, but it's huge https://www.cabletiesonline.co.uk/aerosols-glue/scented-dash-vinyl-polish.html

If I view the image info it says that it's scaled to something like 485 x 1023, yet the image will be no where near this size.

If I remove those 4 lines, then the image is chopped in half, until I perform a page refresh.

I commented out that width line, which didn't help, and I also uploaded those 2 files, which hasn't helped either.

 

These images will probably all have been 500, due to it being a former V3 site, the one mentioned above is 122 x 390px.

If I edit the image in photoshop, make it 390 x 390, giving it some white space, it will display OK

 

if I follow the link to the cache, it displays OK.

ls102-2013.500.jpg

 

Link to comment
Share on other sites

Those two files are still not found at the sterlingworkshopsupplies store.

But I see that you are working on cabletiesonline. There has been no change to the file cubecart.css at cabletiesonline. I explained why the image is large in an earlier post.

 

Link to comment
Share on other sites

yet another schoolboy blunder.

 

in my css file the lines go:

a.open-clearing #img-preview {
    width: 100%;
    height: 100%;

In yours they go:

 

a.open-clearing #img-preview {
  height: 100%;   

width: 100%;
 

Not paying attention, I commented out the bottom line... :wub:

Link to comment
Share on other sites

I copy them from Firebug as opposed to the source. Firebug sorts the rules alphabetically, and groups them where possible if Firebug is configured that way.

Do you have a product with gallery images (additional images other than the main image)?

This additional CSS rule was put in place in an attempt to fix the gallery images from jumping around. If you don't have any and never plan to have any, you don't need this newly added rule.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...