Forum Activity for @ultrajam

SteveX
@ultrajam
04/28/14 08:36:10AM
2,589 posts

Image sizes


Design and Skin Customization

My pleasure, I'm glad to be able to! :)
SteveX
@ultrajam
04/28/14 08:07:26AM
2,589 posts

Image sizes


Design and Skin Customization

Sorry Brian, I had the thread still open when I noticed my mistake, so I just edited it.

All looks good to me.
SteveX
@ultrajam
04/28/14 08:00:11AM
2,589 posts

Image sizes


Design and Skin Customization

deleted this comment, I'm not reading straight today
updated by @ultrajam: 04/28/14 08:05:41AM
SteveX
@ultrajam
04/28/14 06:55:32AM
2,589 posts

Image sizes


Design and Skin Customization

I've tested it extensively and haven't seen distortion at all since completing it. It took quite a while to get right.

Make sure you are not seeing cached images when looking at an image processed on the url, and that if you are looking at images in templates that they are freshly uploaded - once the image has been created it will already be distorted.

When looking at an image directly on the url change the aspect ratio for every page reload to make sure the image is recreated each time.

I still found I had to do that even with emptying the image cache every time.
updated by @ultrajam: 04/28/14 06:57:09AM
SteveX
@ultrajam
04/28/14 06:46:09AM
2,589 posts

Image sizes


Design and Skin Customization

Yes, the width needs to be cropped to maintain the aspect ratio and maintain the max image dimension (switches from width to height or vice versa but is still an small/xlarge/xxlarge image).

Try out my code above (it replaces the if (strpos($_post['crop'], ':')) section at around line 952, and it does do the job perfectly as far as I can see.
SteveX
@ultrajam
04/27/14 03:04:52PM
2,589 posts

Image sizes


Design and Skin Customization

I get the same on my local site though.

The above code fixes it for me.
SteveX
@ultrajam
04/27/14 02:54:37PM
2,589 posts

Image sizes


Design and Skin Customization

No, they both look fine.
SteveX
@ultrajam
04/27/14 02:17:08PM
2,589 posts

Image sizes


Design and Skin Customization

I've been testing that on url images like
/blog/image/blog_image/4/xxlarge/crop=9:18

So far it holds up for blog images of all sizes and aspect ratios and original upload aspect ratio.

The cache problem I was seeing seems to be firefox.
After emptying the jr image cache, ff cache will show a previous version for the same url. You can get around that by changing the image id, size or aspect ratio in the url each time so its always a new url; crop=122:133 crop=122:136 crop=1342:1396 etc
  155