function convert_single_image_to_webp($image_path) {
// Check if the file exists
if (!file_exists($image_path)) {
return "File does not exist: $image_path";
}
// Get the file extension and MIME type
$file_info = getimagesize($image_path);
if (!$file_info) {
return "Invalid image file.";
}
$mime_type = $file_info['mime'];
// Allowed MIME types for conversion
$allowed_mime_types = ['image/jpeg', 'image/png'];
if (!in_array($mime_type, $allowed_mime_types)) {
return "Unsupported file type. Only JPEG and PNG are allowed.";
}
// Load the image based on its MIME type
$image = null;
if ($mime_type === 'image/jpeg') {
$image = imagecreatefromjpeg($image_path);
} elseif ($mime_type === 'image/png') {
$image = imagecreatefrompng($image_path);
}
if (!$image) {
return "Failed to create an image resource.";
}
// Create the WebP file path
$webp_path = $image_path . '.webp';
// Convert to WebP and save the file
if (imagewebp($image, $webp_path)) {
imagedestroy($image); // Free memory
return "Conversion successful. WebP file created at: $webp_path";
} else {
imagedestroy($image); // Free memory
return "Failed to convert the image to WebP.";
}
}
// Example Usage: Replace with the actual file path to test
$image_path = 'https://saskarc.com/en/wp-content/uploads/2024/10/InfraMOD-Banner-2.png'; // Replace with your test image path
$result = convert_single_image_to_webp($image_path);
echo $result;
Upholding Integrity in Every BeamWith Saskarc’s Supplier Code of Conduct
Building trust through steel-solid principles with Saskarc's comprehensive Supplier Code of Conduct
TL;DR: What This Article Covers
No business is an island. To do what it does well, it needs the support of its suppliers, contractors and business partners. And success demands alignment. Alignment that we at Saskarc follow and share with the help of our Supplier Code of Conduct. So why does the supplier code of conduct matter to us experts in temporary steel works?
In this blog we cover why the Saskarc Supplier Code of Conduct is so critical to us, the challenges it addresses, the benefits it provides to our clients, partners and customers, as well as frequently asked questions from vendors and suppliers. The Code of Conduct is not just about compliance. It is about creating with confidence. Building trust through steel-solid principles.
The Origin of the Supplier Code of Conduct
Building trust through steel-solid principles with Saskarc's comprehensive Supplier Code of Conduct
At Saskarc, where we fabricate temporary steel works for critical infrastructure projects across North America, our supply chain is as strong as the steel we deliver. That’s why our steel supplier code of conduct is more than a policy. It is a promise.
Every great structure starts with a blueprint. And in our world of temporary steel works, the blueprint is the supplier code of conduct. A document that sets the stage for ethical & principles driving procurement of services and materials.
With the growth of industries & supply chains, forward thinking organizations realized the importance of ethical and sustainable practices to their survival. Potential risks linked to ignorance of social issues, environmental challenges, human rights and labor rights in the supply chain were too large to ignore. Risks include reputational damage, financial losses, and legal liabilities.
So, companies created supplier codes of conduct guidelines to document standards for members of their supply chain ecosystems. This document helps a company align their suppliers, contractors, subsidiaries and business partners to values it holds dear – be it labor standards, health and safety, environmental impacts or business ethics. Over time, governments set in place regulations that formalized these expectations. Setting in place principles that respect people and the planet alike.
Why We Created a Supplier Code of Conduct for Temporary Steel Works
Tight schedules and complex logistical demands drive the temporary steel works segment. The focus is on reducing costs, maintainingschedules and reducing risk. However, this focus on speed and structural integrity, which Saskarc is known for, cannot come at the cost of doing the right thing.
Which is why Saskarc’s supplier code of conduct is in place to ensure that everyone in our projects, including steel suppliers to contractors (locally & internationally), adhere to values that support a safe, fair and inclusive environment. It covers key issues such as:
This Code is the common language connecting all stakeholders even if they operateacross different legal, cultural and geographical environments.
What the Code Covers and Why It’s Critical
Five pillars, or shall we say struts & walers, support the ethical backbone of Saskarc’s steel supplier code of conduct.
Human Rights
We believe that respect for people is non-negotiable. Every worker must be treated with dignity, free from discrimination, harassment, or intimidation. This isn’tjust good ethics. It isgood business.
Health & Safety
We operate in an industry where physical risks are real. And that is why we demand a strong culture of safety from our suppliers. Documented procedures, incident reporting, and proactive risk management are must-haves.
Code of Ethics
We expect suppliers to operate with transparency and integrity. From legal compliance to moral accountability, ethics shouldnot be situational. They should be standard.
Diversity & Inclusion
We support hiring and promotion based on merit, regardless of gender, race, or background. Inclusion builds stronger teams and better results. We are proof of that.
Prohibition of Forced or Child Labor
Suppliers or contractors / subcontractors who work with us or wish to work with us are strictly prohibited from participating in or benefiting from child or forced labor. This is a cornerstone of our code, and we reserve the right to terminate relationships with those who fail to meet it.
Code of Ethics
We expect suppliers to operate with transparency and integrity. From legal compliance to moral accountability, ethics shouldnot be situational. They should be standard.
Human Rights
We believe that respect for people is non-negotiable. Every worker must be treated with dignity, free from discrimination, harassment, or intimidation. This isn’tjust good ethics. It isgood business.
Diversity & Inclusion
We support hiring and promotion based on merit, regardless of gender, race, or background. Inclusion builds stronger teams and better results. We are proof of that.
Health & Safety
We operate in an industry where physical risks are real. And that is why we demand a strong culture of safety from our suppliers. Documented procedures, incident reporting, and proactive risk management are must-haves.
Prohibition of Forced or Child Labor
Suppliers or contractors / subcontractors who work with us or wish to work with us are strictly prohibited from participating in or benefiting from child or forced labor. This is a cornerstone of our code, and we reserve the right to terminate relationships with those who fail to meet it.
Code of Ethics
We expect suppliers to operate with transparency and integrity. From legal compliance to moral accountability, ethics shouldnot be situational. They should be standard.
Challenges Addressed by the Supplier Code
Implementing a supplier code of conduct for temporary steel worksisn’t without its challenges:
Global inconsistencies in labor law
Many of our suppliers operate across different jurisdictions. Which means different interpretations. Our supplier code of conduct creates a consistent, enforceable standard.
Hidden tiers in the supply chain
Suppliers often subcontract portions of their work. Our code insists on cascading compliance. This means our suppliers are responsible for their suppliers.
Resistance to change
Some vendors may be unfamiliar with formal ethical codes. We see this as an opportunity for education, development, and ultimately, stronger relationships.
The Benefits: Why It Works for Everyone
When a supplier signs Saskarc’s Code of Conduct, they’re not just committing to paperwork. They’re entering a value-driven partnership that comes with tangible benefits:
Stronger business relationships
built on mutual respect and clear expectations.
Lower risk
for clients, who can trust that every component is sourced ethically.
Improved safety outcomes
across the project lifecycle.
Competitive advantage
for suppliers who demonstrate leadership in ESG (Environmental, Social, and Governance) performance.
At Saskarc, we don’t just build temporary steel structures. We build long-term trust. Our supplier code of conduct isn’t about checking boxes. It is about elevating the standard of what ethical steel procurement looks like in today’s world.
If you’re a current or potential supplier, we invite you to read, understand, and align with our code. Because when our values align, everything we build - steel or otherwise, stands stronger.