Skip to content

Commit

Permalink
prior webp
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Cabrera committed Mar 14, 2024
1 parent 5b969bb commit b7cb2c1
Show file tree
Hide file tree
Showing 56 changed files with 40 additions and 13 deletions.
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h3 class="slide-up translate" data-key="ABOUT_text_9"><b>Visión:</b> Ser un re
<div id="talk_wrap" class="slide-up">
<h1 class="translate" data-key="ABOUT_text_10">Nuestra Planta</h1>
<h2 class="translate" data-key="ABOUT_text_11">Nuestra planta de 11.000 m2 cuenta con una amplia capacidad de almacenamiento de productos a granel y envasados. Operamos con procesos automatizados de carga y descarga de graneles, de fraccionamiento y de formulación. De esta forma, podemos satisfacer las necesidades del mercado mediante una amplia oferta de productos en diversas presentaciones.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="ABOUT_text_12">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="ABOUT_text_12">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion applications.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ <h2 class="translate" data-key="APP_text_2">Ofrecemos soluciones con altos está
<div id="talk_wrap">
<h1 class="translate" data-key="APP_text_3">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="APP_text_4">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="APP_text_5">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="APP_text_5">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion automotive.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ <h2 class="translate" data-key="AUTO_text_2">Productos de alta performance para
<div id="talk_wrap">
<h1 class="translate" data-key="AUTO_text_3">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="AUTO_text_4">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="AUTO_text_5">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="AUTO_text_5">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion construction.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ <h2 class="translate" data-key="CONST_text_2">Amplia variedad de soluciones en a
<div id="talk_wrap">
<h1 class="translate" data-key="CONST_text_3">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="CONST_text_4">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="CONST_text_5">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="CONST_text_5">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion consumption.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ <h2 class="translate" data-key="CONS_text_2">Productos químicos básicos de la
<div id="talk_wrap">
<h1 class="translate" data-key="CONST_text_3">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="CONST_text_4">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="CONST_text_5">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="CONST_text_5">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion flexible-foams.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ <h2 class="translate" data-key="FOAMS_text_2">Más de 45 años abasteciendo a in
<div id="talk_wrap">
<h1 class="translate" data-key="FOAMS_text_10">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="FOAMS_text_11">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="FOAMS_text_12">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="FOAMS_text_12">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion gas-and-mining.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h2 class="translate" data-key="GAS_text_2">Desarrollamos soluciones para acompa
<div id="talk_wrap">
<h1 class="translate" data-key="GAS_text_3">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="GAS_text_4">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="GAS_text_5">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="GAS_text_5">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion green.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h1 class="translate" data-key="GREEN_text_9">CUIDADO RESPONSABLE DEL MEDIO AMBI
más sustentable.</p>

<p class="text-sm-start text-center">
<button class="btn btn-lg alk-btn translate" data-key="GREEN_text_13">Conversemos</button>
<a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="GREEN_text_13">Conversemos</button></a>
</p>
</div>
</div>
Expand Down
Binary file added images/FOTOMYA-E1485-003.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-051.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-093.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-109.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-120.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-128.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-199.webp
Binary file not shown.
Binary file added images/FOTOMYA-E1485-231.webp
Binary file not shown.
Binary file added images/FOTOMYA-P1488-103.webp
Binary file not shown.
Binary file added images/Foto-HOME-(Tanques).webp
Binary file not shown.
Binary file added images/barril.webp
Binary file not shown.
Binary file added images/fecken.webp
Binary file not shown.
Binary file added images/green.webp
Binary file not shown.
Binary file added images/home_1.webp
Binary file not shown.
Binary file added images/home_2.webp
Binary file not shown.
Binary file added images/home_3.webp
Binary file not shown.
Binary file added images/home_5.webp
Binary file not shown.
Binary file added images/home_6.webp
Binary file not shown.
Binary file added images/home_7.webp
Binary file not shown.
Binary file added images/home_8.webp
Binary file not shown.
Binary file added images/home_lab.webp
Binary file not shown.
Binary file added images/laader.webp
Binary file not shown.
Binary file added images/lab1.webp
Binary file not shown.
Binary file added images/lab2.webp
Binary file not shown.
Binary file added images/lab3.webp
Binary file not shown.
Binary file added images/lab_tech_3.webp
Binary file not shown.
Binary file added images/logos-horizontal.webp
Binary file not shown.
Binary file added images/machine1-back.webp
Binary file not shown.
Binary file added images/machine3.webp
Binary file not shown.
Binary file added images/machine5.webp
Binary file not shown.
Binary file added images/machine6.webp
Binary file not shown.
Binary file added images/plant-final.webp
Binary file not shown.
Binary file added images/plant.webp
Binary file not shown.
Binary file added images/plant1.webp
Binary file not shown.
Binary file added images/plant2.webp
Binary file not shown.
Binary file added images/plant2a.webp
Binary file not shown.
Binary file added images/plant3.webp
Binary file not shown.
Binary file added images/plant4.webp
Binary file not shown.
Binary file added images/productos.webp
Binary file not shown.
Binary file added images/story1.webp
Binary file not shown.
Binary file added images/story2.webp
Binary file not shown.
Binary file added images/warehouse.webp
Binary file not shown.
Binary file added images/warehouse2.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions machines.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h3 class="card-title display-6">Laader Berg</h3>

</div>
<div class="card-footer">
<p class="text-center"><button class="btn btn-lg alk-btn translate" data-key="MACH_card_text_4">Consulte a nuestros expertos</button></p>
<p class="text-center"><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="MACH_card_text_4">Consulte a nuestros expertos</button></a></p>
</div>
</div>

Expand Down Expand Up @@ -171,7 +171,7 @@ <h3 class="card-title display-6">Fecken Kirfel</h3>

</div>
<div class="card-footer">
<p class="text-center"><button class="btn btn-lg alk-btn translate" data-key="MACH_card_text_4">Consulte a nuestros expertos</button></p>
<p class="text-center"><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="MACH_card_text_4">Consulte a nuestros expertos</button></a></p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
"dependencies": {
"express": "^4.18.2",
"sharp": "^0.32.1"
"sharp": "^0.32.6"
}
}
2 changes: 1 addition & 1 deletion refrigeration.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ <h2 class="translate" data-key="REF_text_2">Trayectoria y conocimiento técnico
<div id="talk_wrap">
<h1 class="translate" data-key="REF_text_3">Consulte a nuestros especialistas</h1>
<h2 class="translate" data-key="REF_text_4">Nuestro equipo técnico puede ayudarlo a desarrollar la aplicación que necesite y a optimizar sus procesos productivos con los más altos estándares de calidad.</h2>
<p><button class="btn btn-lg alk-btn translate" data-key="REF_text_5">Conversemos</button></p>
<p><a href="mailto:[email protected]"><button class="btn btn-lg alk-btn translate" data-key="REF_text_5">Conversemos</button></a></p>
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ body {

#talk_img_back {
position: absolute;
background: url("images/lab_tech_3.jpg") no-repeat center right;
background: url("images/lab_tech_3.webp") no-repeat center right;
background-size: cover;
transition: left 1.6s; /* Adjust the transition duration as needed */
top: 0;
Expand Down
27 changes: 27 additions & 0 deletions webp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const fs = require('fs');
const sharp = require('sharp');
const path = require('path');

const inputDir = './images'; // Directory with JPG images

fs.readdir(inputDir, (err, files) => {
if (err) {
console.error('Error reading input directory:', err);
return;
}

files.filter(file => path.extname(file).toLowerCase() === '.jpg').forEach(file => {
const inputFile = path.join(inputDir, file);
const outputFile = path.join(inputDir, `${path.parse(file).name}.webp`);

sharp(inputFile)
.toFormat('webp')
.toFile(outputFile)
.then(() => {
console.log(`${file} has been compressed and saved as ${path.parse(file).name}.webp`);
})
.catch(err => {
console.error('Error processing file', file, err);
});
});
});

0 comments on commit b7cb2c1

Please sign in to comment.