Welcome, Guest
Username Password: Remember me

Image resize question
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Image resize question

Image resize question 12 years, 7 months ago #5345

  • fbitonte
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I am running a site and I have installed MJ.
My problem is that the images included in articles are hosted is a different server than the joomla site and they are not being resized.
All the imagens stored in the same server are resized correctly but others hosted on other server are displayed in the original size.
I have those images hosted in a different server for traffic limits and rates pourposes.
Any ideas on how to make mobile joomla resize the images hosted in the other server?

I have set "Use style to force image size" to Yes and nothing happends.

See an internal image: 
<div class="imagen">
<img width="280" height="186" border="0" src="/images/ARCHIVO/Resized/puente_amarillo_20110906_AG_280x186.jpg" style="width:280px !important;height:186px !important;" />
<p>El nuevo puente del parque</p></div>

And a external one: 
<div class="imagen"><img src="azulhoy.radiografico.com.ar/imagenes/OTRAS/chiodi_maraton_20110906_ABG.jpg" border="0" />
<p>La tapa del nuevo disco de el Turco Chiodi</p></div>

thanks in advance!

Federico.-

PS: In case you need to see, the site is www.azulhoy.com
Last Edit: 12 years, 7 months ago by fbitonte. Reason: Adding information

Re: Image resize question 12 years, 7 months ago #5432

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
You could try to add the following code to the mobile template in the bottom of head section:
<style>img{max-width:<?php echo $MobileJoomla_Device['screenwidth'];?>px}</style>

Re: Image resize question 10 years, 10 months ago #14868

  • moonlake
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
@dryabov your suggestion is working .Im working on image resizing with my app generaton.
Last Edit: 10 years, 10 months ago by moonlake.
  • Page:
  • 1
Time to create page: 0.10 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.