Foros del Web » Programando para Internet » PHP »

imagenes se ven algo mal

Estas en el tema de imagenes se ven algo mal en el foro de PHP en Foros del Web. Hola amigos. Ayuda tengo un script para inmobiliaria pero tengo un problema con las imagenes me salen muy mal pixeles , no se ven muy ...
  #1 (permalink)  
Antiguo 04/03/2011, 18:34
 
Fecha de Ingreso: noviembre-2010
Mensajes: 8
Antigüedad: 13 años, 5 meses
Puntos: 0
imagenes se ven algo mal

Hola amigos.

Ayuda tengo un script para inmobiliaria pero tengo un problema con las imagenes
me salen muy mal pixeles , no se ven muy bien las imagenes , asi tenga las imagenes buena calidad .

este es el showimage.php la cual llama el archivo que las visualiza viewimage.tpl



archivo showimage.php



<?php
/************************************************** ****************
* PHPMass Real Estate
* The contents of this file are subject to the PHPMass License.
* If you do not agree with PHPMass License Terms and Conditions
* than you should not use this software.
* A copy of the license file is available on www.phpmass.com/license.htm page.
*
* PHPMass.com.
* All Rights Reserved.
************************************************** ****************/
$SiteSection = 'front';
require('../includes/config.php');

$ProductID = $_GET['ProductID'];
$ImageID = $_GET['ImageID'];
$ProductInfo = $Product->getProduct($ProductID);
$smarty->assign('Product', $ProductInfo);

$smarty->assign('ImageID', $ImageID);
$smarty->assign('ImageDir', $ProductInfo['image'.$ImageID]);

$smarty->assign('PageTitle', $ProductInfo['name']);

$smarty->assign('GET', $_GET);
$smarty->assign('Error', $Error);
$smarty->display(DOC_ROOT.'/skin/templates/tools/'.'viewimage.tpl');
?>



y este es el archivo tpl


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$PageTitle}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/images/style.css" rel="stylesheet" type="text/css" />
<link href="/images/filters.css" rel="stylesheet" type="text/css" />
<script src="/images/scripts/lang.js" type="text/javascript"></script>
<script src="/images/scripts/prototype.js" type="text/javascript"></script>
<script src="/images/scripts/filtre.js" type="text/javascript"></script>
<script src="/images/scripts/javascript.js" type="text/javascript"></script>
<link rel="Shortcut Icon" href="/images/favorites.ico" />
</head>
<body>
<center>
<table class="usertable" width="670" border="0" cellspacing="0" cellpadding="0" style="color:#45586F;">
<tr>
<td colspan="3" class="head">{$Product.name} {#images#}</td>
</tr>
<tr>
<td colspan="3" height="15">&nbsp;</td>
</tr>
<tr>
<td colspan="3">
<div align="center">
{if $Product.image0 ne ''}
<a href="/tools/showimage.php?ProductID={$Product.productid}&amp;I mageID=0">
<img src="/files/images/{$Product.image0}/{$Product.productid}-0-thumb.jpg" width="40" border="0"/>
</a>
{/if}
{if $Product.image1 ne ''}
<a href="/tools/showimage.php?ProductID={$Product.productid}&amp;I mageID=1">
<img src="/files/images/{$Product.image1}/{$Product.productid}-1-thumb.jpg" width="40" border="0"/>
</a>
{/if}
{if $Product.image2 ne ''}
<a href="/tools/showimage.php?ProductID={$Product.productid}&amp;I mageID=2">
<img src="/files/images/{$Product.image2}/{$Product.productid}-2-thumb.jpg" width="40" border="0"/>
</a>
{/if}
{if $Product.image3 ne ''}
<a href="/tools/showimage.php?ProductID={$Product.productid}&amp;I mageID=3">
<img src="/files/images/{$Product.image3}/{$Product.productid}-3-thumb.jpg" width="40" border="0"/>
</a>
{/if}
{if $Product.image4 ne ''}
<a href="/tools/showimage.php?ProductID={$Product.productid}&amp;I mageID=4">
<img src="/files/images/{$Product.image4}/{$Product.productid}-4-thumb.jpg" width="40" border="0"/>
</a>
{/if}
</div>
</td>
</tr>
<tr>
<td colspan="3" height="15">&nbsp;</td>
</tr>
<tr>
<td width="15">&nbsp;</td>

<td width="640">
<img src="/files/images/{$ImageDir}/{$Product.productid}-{$ImageID}-large.jpg" />
</td>
<td width="15">&nbsp;</td>
</tr>
<tr>
<td colspan="3" height="15">&nbsp;</td>
</tr>

</table>
</center>
</body>
</html>




Quiro saber si se puede mejorar la calidad de la imagen mejorando estos archivos


GRACIAS

mauricio
  #2 (permalink)  
Antiguo 05/03/2011, 00:39
Avatar de maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 15 años, 9 meses
Puntos: 1532
Respuesta: imagenes se ven algo mal

por lo que veo en ninguna parte se modifican tales imágenes.

el problema puede deberse a los renders de imágenes de cada navegador, que al estirar o minimizar el tamaño de la imágen, las mismas se vean mal.

la opción seria crear las miniaturas manualmente o con un programa de dibujo por lote, otra forma es usar GD e imagecreatetruecolor para crear miniaturas dinámicas (thumbnail's)
__________________
¡Por favor!: usa el highlight para mostrar código
El que busca, encuentra...

Etiquetas: imagenes, ven
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:05.