🖼️ Image Resizer

🖼️ Image KB Compressor

Compress to exact target size · JPG, PNG, WebP supported

📷 No image selected
⬇️ Download Compressed Image
'; resultDiv.style.display = 'none'; downloadBtn.style.display = 'none'; }; img.src = currentObjectUrl; }); } // Quick KB Setup var quickButtons = document.querySelectorAll('.ikc-quick-buttons button'); quickButtons.forEach(function(btn) { btn.addEventListener('click', function(e) { e.preventDefault(); var kb = this.getAttribute('data-kb'); if (kb && targetKBInput) { targetKBInput.value = kb; } }); }); // Compression Action if (compressBtn) { compressBtn.addEventListener('click', async function(e) { e.preventDefault(); if (!ikcCurrentImageData) { alert('📁 Please select an image first.'); return; } var targetKB = parseFloat(targetKBInput.value); var targetBytes = targetKB * 1024; var img = ikcCurrentImageData.img; var originalSizeKB = (ikcCurrentImageData.fileSizeBytes / 1024).toFixed(1); canvas.width = img.naturalWidth || img.width; canvas.height = img.naturalHeight || img.height; ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.drawImage(img, 0, 0, canvas.width, canvas.height); var mimeType = 'image/jpeg'; var low = 0.0, high = 1.0, bestQuality = 0.5, bestBlob = null; for (var iter = 0; iter < 20; iter++) { var mid = (low + high) / 2; var blob = await new Promise(res => canvas.toBlob(res, mimeType, mid)); if (!blob) break; if (blob.size <= targetBytes) { bestBlob = blob; bestQuality = mid; low = mid + 0.02; } else { high = mid - 0.02; } } if (!bestBlob) { bestBlob = await new Promise(res => canvas.toBlob(res, mimeType, 0.1)); } if (bestBlob) { var finalSizeKB = (bestBlob.size / 1024).toFixed(1); var finalUrl = URL.createObjectURL(bestBlob); downloadBtn.href = finalUrl; downloadBtn.download = "compressed_" + ikcCurrentImageData.fileName; downloadBtn.style.display = 'block'; resultDiv.innerHTML = '
📦 Original Size' + originalSizeKB + ' KB
' + '
✅ Compressed Size' + finalSizeKB + ' KB
'; resultDiv.style.display = 'block'; } }); } }); })();

Image Resizer width & Height

🖼️ Image Resizer Pro

Resize your images with precision & quality

📤

Drag & Drop or Click to Upload

Supported: JPG, PNG, WebP, GIF
10% 100%

Image Resizer – Online Photos Ka Size Aur Dimension Change Karein! 🖼️⚡

Online forms, website uploading, ya social media ke liye photos ka exact pixel dimension aur file size (KB/MB) me hona bohot zaroori hota hai. Hamara Image Resizer Tool aapki images ko bina quality loss kiye turant resize karne me madad karta hai!

Is tool se aap kisi bhi JPEG, PNG ya WebP image ke Height, Width, aur Quality ko apne hisaab se easily adjust kar sakte hain.

Key Features:

  • Custom Dimensions: Apne according Pixel (px) ya Percentage (%) me height aur width set karein.
  • No Quality Loss: Photo ki original clarity aur resolution maintain rehti hai.
  • Fast & Free: Instant live preview aur 1-click single-click download option.
  • Mobile & Desktop Friendly: Har device par smoothly kaam karta hai.

Aaj hi is Image Resizer tool ko try karein aur apni photos ko seconds me perfectly resize karein!

Leave a Comment