Forum
Welcome, Guest

How to not auto-resize images
(1 viewing) (1) Guest
Ask all your support questions for SOBI2 JView Gallery Plugin here.
  • Page:
  • 1

TOPIC: How to not auto-resize images

How to not auto-resize images 1 year, 2 months ago #2282

Well, my first thing is I don't want my images to get auto-resized. If i'm uploading tiny icons (some 30x30 px or less), they get set to a pixel width no matter what and I just want the to have a max pixel width, not a forced one all-together. There was this feature on the free Sobi2 gallery and it was very useful. Is this possible with your gallery if I change some code?

Also, i'm not entirely fond of the one large image that pops up when hovering over the smaller images. Where can I disable/delete this feature?

I will say though you're image uploading options are about 50 times better than the free gallery!

Here's my example so u get a good idea of what i'm trying to do...
www.allgameicons.com/index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=6&Itemid=13&Itemid=13

Thanks!

Re: How to not auto-resize images 1 year, 2 months ago #2283

  • nicholas
  • OFFLINE
  • Moderator
  • Developing for Joomla since it was born!
  • Posts: 1197
Hello -

Just so we get it. You want multiple rows of images that are not resized and no action on mouseover? So the gallery is a set of thumbs or other size images, with no popup or image swap, right?
Nicholas
CIO - CorFun, Inc.
Publisher - orthodoxbiz.com
Webmaster - Orthodox Christian Network

Re: How to not auto-resize images 1 year, 2 months ago #2284

Yes, that would be really nice. I just want the icons as they are, no fancy stuff. But I still need to be able to set an image max, so people can't just upload giant pictures.

Re: How to not auto-resize images 1 year, 2 months ago #2287

  • jerry
  • OFFLINE
  • Moderator
  • Posts: 407
The plugin config area has a max upload size, so that will handle your image max requirements.

The "showDetails" function in the jview.class.php member is where you would need to change the process not to resize your images. It's in the plugins folder under the sobi2 component folder.

It will not be a simple task because not only are the images scaled, but the div's that hold them are are also set to the size specified in the config. Without this control there is no way to insure that images uploaded will not break your display (especially if visitors are doing the uploading).

One thing I said there is very important: the images are scaled. So if you set the width and height to be the same (say a max width or a max height) the image will be kept in perspective as they are re-sized. I understand that you are probably aware of this but for those who come behind who are not, I wanted to make that clear.

As far as the getting rid of the large image: the simplest way is to set the div to display:none in the CSS (make sure to also set the caption field and to use the !important parameter).

Lastly, thank you for the kind words on our image upload process. I'm glad you like it.

Jerry
  • Page:
  • 1
Time to create page: 0.52 seconds

Login