I need help
Posted: 2018-08-24T12:47:21-07:00
Hello guys i need help with imagic, i try to convert pdf into png, but i have this result.
https://drive.google.com/open?id=1uCGsS ... bM2nwB6EAJ
i need help
this is my code.<br/>
if($numrows==0){
if($categoria[$count] == "Selecciona")
$categoria[$count] = "GENERAL/";
$query = "INSERT INTO bas_indice (index_path,tag,uid,index_name,book_name) values ('$bookpath','$categoria[$count]','$uid','$directory','$libro');";
$con = pg_connect($conexion) or die ('No se pudo conectar: '.pg_last_error());
$resultado = pg_query($con,$query) or die("Error en la consulta SQL");
$count = $count + 1;
pg_close($con);
for ($i=0; $i < $numberpg; $i++) {
if (!file_exists($bookpath."/".$directory."_".$cliente."_".$i.".png")){
$objImgick->readImage("{$file}[$i]"); //El pdf
$objImgick->setImageFormat('png');//Asigna el formato de la imagen
$objImgick->writeImage($bookpath."/".$directory."_".$cliente."_".$i.'.png');
$objImgick->clear();//Borra la cache de la imagen
$objImgick->destroy();//Destruye el objeto imagen
}
}
this problem occurs in any file that contains text.
my specs
Ubuntu 18.04
php 7.2
apache2
16 gb ram
i5 6ta
P.D.
Sorry for my bad english <E>:lol:</E> and thank you for any help</r>
https://drive.google.com/open?id=1uCGsS ... bM2nwB6EAJ
i need help
this is my code.<br/>
if($numrows==0){
if($categoria[$count] == "Selecciona")
$categoria[$count] = "GENERAL/";
$query = "INSERT INTO bas_indice (index_path,tag,uid,index_name,book_name) values ('$bookpath','$categoria[$count]','$uid','$directory','$libro');";
$con = pg_connect($conexion) or die ('No se pudo conectar: '.pg_last_error());
$resultado = pg_query($con,$query) or die("Error en la consulta SQL");
$count = $count + 1;
pg_close($con);
for ($i=0; $i < $numberpg; $i++) {
if (!file_exists($bookpath."/".$directory."_".$cliente."_".$i.".png")){
$objImgick->readImage("{$file}[$i]"); //El pdf
$objImgick->setImageFormat('png');//Asigna el formato de la imagen
$objImgick->writeImage($bookpath."/".$directory."_".$cliente."_".$i.'.png');
$objImgick->clear();//Borra la cache de la imagen
$objImgick->destroy();//Destruye el objeto imagen
}
}
this problem occurs in any file that contains text.
my specs
Ubuntu 18.04
php 7.2
apache2
16 gb ram
i5 6ta
P.D.
Sorry for my bad english <E>:lol:</E> and thank you for any help</r>