×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Image Resize

Image Resize 11 years 2 months ago #22661

  • Jorge Alves
  • Jorge Alves's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi,

I have a test site in www.reportercivico.com where I have a "civi-reporting" tool for everybody in my neighbourhood report problems to the municipality.

I'm building it from scratch but I found a problem.
I can not control the size (with/height)of the picture people insert.
The thumbnail appears ok, but in the the mark page the picture is huge since it's on actual size.

Is there a way to autoresize when uploading? Or autoresize when showing?

I give you an example:
reportercivico.com/index.php/site-map/2-...ta-de-sinal-transito

the Photo tab will show a huge picture cropped by the template.

ps: I'm develloper and I was thinking on hacking the extension, but before that and the issue of having to keep that in every update, is there any option to do that?

Sincere regards,
Jorge

Image Resize 11 years 2 months ago #22662

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Jorge,
the easiest way for you would be to set the image size using css.

Now I know that this needs improving! Like adding parameters for max image size, then when uploading resize it. The current code we have for this is a mess. I thought actually of using the new JImage library.

If you want to fix this and then share your code - I'll add to our repository.

Regards,
Daniel

Image Resize 11 years 2 months ago #22669

  • Jorge Alves
  • Jorge Alves's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi,

My code for sure is not at the standart of yours.
My idea was to have a parameter in the config the limits the width and height of the imaged viewed.
Using the css is for sure fastest.
I'll try and post here the results.

Best regards,
Jorge
  • Page:
  • 1
Time to create page: 0.175 seconds