Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak zmienić rozmiar i powiększyć obrazki bez utraty jakości?

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy kiedykolwiek próbowałeś zmienić rozmiar obrazka, aby go powiększyć, ale zamiast tego straciłeś jego jakość?

Gdy próbujesz powiększyć obrazek, może on wyglądać na rozmyty i nieprofesjonalny. Obraz składa się z tysięcy pikseli, a po zwiększeniu jego rozmiaru piksele te stają się widoczne.

W rezultacie otrzymujemy matowy obraz o niskiej jakości.

Z naszego wieloletniego doświadczenia w blogowaniu dowiedzieliśmy się, że obrazki mogą stworzyć lub zepsuć twoją treść. Jeśli twoje obrazki wyglądają na rozmazane, może to obniżyć zaangażowanie użytkowników i zaszkodzić twojej marce.

Na szczęście istnieją rozwiązania tego problemu. Można skorzystać z zaawansowanego oprogramowania do edycji obrazów, algorytmów zachowujących jakość obrazu lub narzędzi online przeznaczonych do zmiany rozmiaru obrazków.

W tym artykule pokażemy, jak łatwo zmienić rozmiar obrazków, aby powiększyć je bez utraty jakości.

Resize make images larger in WordPress

Dlaczego obrazki tracą jakość po powiększeniu?

Mapa bitowa jest najczęściej używanym formatem obrazu w Internecie, a wszystkie twoje pliki JPEG i PNG są plikami obrazów bitmapowych.

Obrazek bitmapowy składa się z tysięcy pikseli. Jeśli powiększysz obraz, możesz zobaczyć te piksele jako Square. Każdy piksel jest mapowany do poprawnej lokalizacji na obrazku, stąd nazwa bitmapa.

Pixel zoomed preview

Większość programów do edycji obrazu zmniejsza lub powiększa te piksele w celu zmiany rozmiaru obrazka. Dlatego też nie ma widocznej utraty jakości po zmianie rozmiaru obrazka na mniejszy, głównie dlatego, że piksele te stają się jeszcze mniej widoczne.

Z drugiej strony, po zmianie rozmiaru obrazka w WordPressie, aby go powiększyć, te powiększone piksele stają się bardziej widoczne, przez co obrazek wygląda na rozmyty i rozpikselowany.

Blurred zoomed image preview

Rozwiązaniem jest dostosowanie każdego powiększonego piksela tak, aby wyglądał jak piksele wokół niego. Metoda ta nazywana jest interpolacją fraktalną lub po prostu fraktalami.

Uwaga: Zawsze zaczynaj od obrazka o wysokiej rozdzielczości. Im większa liczba pikseli na oryginalnym obrazku, tym lepiej poradzi on sobie z powiększeniem. Wynika to z większej ilości szczegółów i danych, z którymi można pracować po rozciągnięciu obrazka.

W poniższych sekcjach pokażemy, jak zmienić rozmiar obrazków za pomocą najpopularniejszych programów do edycji obrazków dla twojej witryny internetowej WordPress. Możesz użyć poniższych odnośników, aby przejść do dowolnej metody za pomocą jednego kliknięcia:

Gotowy? Zaczynajmy.

Metoda 1: Powiększanie obrazków przy użyciu programu GIMP (za darmo)

Gimp

GIMP to darmowa alternatywa dla narzędzi premium, takich jak Adobe Photoshop i Affinity Photo. Za jego pomocą można powiększać obrazki przy minimalnej utracie jakości. Powinniśmy jednak ostrzec, że wynik nie będzie tak dobry jak w przypadku Perfect Resize, który pokażemy w metodzie 3 poniżej.

Pierwszą rzeczą, którą musisz zrobić, jest pobranie i zainstalowanie bezpłatnego oprogramowania na twoim komputerze. Jest ono dostępne zarówno dla urządzeń z systemem Mac, jak i Windows.

Następnie otwórz obrazek, którego rozmiar chcesz zmienić, w programie Gimp i przejdź do opcji Obrazek ” Skaluj obrazek.

Click on scale image option

W wyskakującym okienku, które się pojawi, możesz wpisz szerokość i wysokość, aby ustawić twoje pożądane wymiary.

W sekcji „Jakość” wybierzmy „Sześcienny” jako metodę interpolacji. Po zakończeniu, kliknij przycisk „Skaluj”.

Change scale image settings

To wszystko; możesz teraz wyeksportować powiększony obrazek w różnych formatach, takich jak PNG, JPEG, WebP, HTML i innych.

Metoda 2: Powiększanie obrazków za pomocą Irfanview (za darmo)

IrfanView

Irfanview to kompaktowy program do edycji zdjęć, który jest również darmowy. Dostępny tylko dla systemów operacyjnych opartych na Windows, zapewnia inteligentniejszy sposób zmiany rozmiaru obrazków i powiększania ich.

Zanim zaczniesz korzystać z tego narzędzia, upewnij się, że zainstalowałeś je na swoim komputerze z systemem Windows.

Po instalacji wystarczy otworzyć twój obrazek w Irfanview i przejść do Image ” Resize/Resample.

Resize images in IrfanView

Spowoduje to wyświetlenie wyskakującego okna zmiany rozmiaru obrazka. W tym miejscu należy wpisz żądany rozmiar obrazka w polu „Ustaw nowy rozmiar”, określając szerokość i wysokość.

Następnie można wybrać opcję ponownego próbkowania w sekcji „Metoda rozmiaru”. Wybierzmy opcję „Lanczos (najwolniejszy)” z rozwijanego menu filtra.

Na koniec należy zaznaczyć pole obok opcji „Zastosuj wyostrzanie po ponownym próbkowaniu” i kliknąć przycisk „OK” po zakończeniu.

Change resize image settings

Irfanview zmieni teraz rozmiar obrazka, który możesz następnie zapisać na swoim komputerze.

Można powiadomić, że darmowe narzędzia nie radzą sobie zbyt dobrze ze zmianą rozmiaru obrazka w celu jego powiększenia. Jednakże, dostosowując ostrość i kontrast, można powiększyć obrazek i zminimalizować utratę jakości.

Można również skorzystać z narzędzia premium Irfanview, aby upewnić się, że obrazek pozostanie ostry i wyraźny po powiększeniu.

Metoda 3: Powiększanie obrazków przy użyciu ON1 (Premium)

ON1 Resize AI

ON1 Resize AI, lub Perfect Resize, jak był wcześniej znany, to narzędzie, które pozwala na inteligentną zmianę rozmiaru twoich obrazków.

Oprogramowanie wykorzystuje sztuczną inteligencję, aby pomóc utrzymać twoje obrazy w wysokiej rozdzielczości, nawet gdy ich rozmiar się zwiększy lub chcesz powiększyć obrazek na określonym obszarze.

ON1 image resize settings

Jest on dostępny jako samodzielne oprogramowanie oraz jako wtyczka do programów Adobe Photoshop, Lightroom, Capture One i Apple Photos.

Samodzielne oprogramowanie ON1 Resize AL jest dostępne w cenie 69,99 USD. Oprogramowanie to zapewnia zaawansowane narzędzia do powiększania obrazków przy zachowaniu wysokiej jakości, co czyni je cenną inwestycją dla fotografów i grafików.

Mamy nadzieję, że ten artykuł pomógł ci dowiedzieć się, jak zmienić rozmiar obrazków, aby powiększyć je bez utraty jakości. Zachęcamy również do zapoznania się z naszym przewodnikiem na temat podstawowej edycji obrazków w WordPressie oraz naszą listą świetnych wtyczek WordPress do zarządzania obrazkami.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

50 komentarzyZostaw odpowiedź

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Shamsad says

    For anyone seeing this in 2022, the gimp solution worked for me. The Sinc(Lanczos3) got replaced by NoHalo. Using this and scaling, I got to resize my png.
    I always find quality solution in wpbeginner. Keep up the good work.

  3. Dorki3 says

    None of the above solutions helped me resize to the desired size and quality, i managed to resize the picture but the quality was very poor! thank you for the effort tho! found some nice picture software!

    • WPBeginner Support says

      Sorry that you couldn’t solve the issue on your end but glad you liked our recommendations for tools :)

      Administrator

  4. Giorgio says

    Hi, with Gimp is perfect. But if I have lot of photos is there a solution for automate with gimp?
    Thanks

    Giorgio

    • WPBeginner Support says

      Unless I hear otherwise, we don’t have an automation tool to work with Gimp like that at the moment.

      Administrator

  5. Chris Campbell says

    Unfortunately the instructions call for opening an image in PS and then selecting File > Automate >Perfect Resize, but there is no Perfect Resize option available. Not sure how an article this new is incorrect, but that what I’m seeing. Very frustrating now since the article encouraged me to spend $60.

    • WPBeginner Support says

      There may have been an update to the option location. If you reach out to Perfect Resize’s support they should be able to let you know where the button is currently.

      Administrator

  6. Jim Barker says

    well the explanation of each item to use was great, except I tried to down load both free versions and neither one did anything to the picture I was trying to increase in size. it was wallet to 5×7. bummer

  7. Liene says

    Thanks for this post. I haven’t heard about IrfanView, just now downloaded and it really does its job. Great. Thanks.

  8. Melissa says

    Hi!

    I tried the perfect resize which I think is now called ON1, and I wasn’t able to resize from a 3 inch to an 8 inch without losing quality. I just wanted to ask you if you hay any idea why.

    Thank you!

  9. manish says

    i great that i have founded the solution of my big and big problem.
    i thank to the programmer of Irfanview and the web site designer.
    thank a lot!!!!

  10. Dufner says

    I’ve used Perfect Resize software itself without Photoshop and it works better than just resizing with Photoshop without plugin. I did it at school where they had the license for the program. Never tried it in Photoshop with the Resize plugin, good to know! Thanks

  11. Safura Abbas says

    Hi Team,

    I am glad to have found my solution on this site. So very well explained and understood. Appreciate your help. I downloaded the trial version of ON1 software and my image that i was trying to enlarge for hours to print right on the paper went in vain until I found your blog. Kudos to Syed Balkhi and team for this informative site. Happy me :)

    Thank you once again.

  12. Rebecca Cunningham says

    It works like magic! I’ve tried everything, and this is pure perfection. Thank you so very much.

  13. Irineu says

    I have used the extension Simple Image Resizer, Chrome, and have had good results. I’m from Brazil. Congratulations.

  14. Anthony says

    This is what i’ve been looking for. PS CC has limited options for retaining image size after merging it with several other layers. Thanks a lot!

  15. Carol says

    I have two questions:

    1. I know next to nothing about photoshop, but I do use Lightroom 6 when editing images. Is there a way that is similar to the ways mentioned here to do the same in Lightroom?
    2. In another article here on WPBeginner, someone commented that the days of lowering the photo resolution for a faster site are practically over. If so, what is the recommended mg size & dpi for most blog photos? (This is a photography blog site, so I want them to be as clear as possible.)

    Thanks.

  16. Rebecca Rose says

    Hi and thank you for your site. I am a rank Beginner (to put it mildly) and found your site while searching the web for information on how to resize photos for Windows Movie Maker.

    Right now I want to make Slide Show „movies” for the music I compose … but, those black panels on either side of the smaller photos that I use are a real turn-off! So, I am trying my best to learn what to do … I own Photo Shop – but sadly, as yet I have never used it. After reading the above comments, I think it’s time! Any other comments you have would be VERY welcome …

  17. Richard Cunningham says

    Here is a simple solution if you are challenged by loss of definition/blurring or over pixellation when you re-size an image. My problem was with a business card where I had an excellent large image in .jpg format but I could not figure out how to retain the definition quality when I reduced it using gimp.

    Voila!

    Assume that you have an excellent .jpg image which is A4 size and you want to reduce it to a business card size allowing for trim and bleed of 3.6 inches by 2.1 inches at 300 dpi. If you try to edit the file in Gimp, you will end up with unacceptable quality. I wasted hours!

    Try this:

    1. Open a new file using a 300 dpi template. Set the size parameters as you want them to be – 3.600 x 2.100.

    2. Open the file you want to resize – in this case you want to downsize.

    3. While in this file, hit Edit – Copy.

    4. Go to the new file and hit Edit – Paste.

    Check the image details and you will find that you have a perfectly defined reduced 3.6 inch by 2.1 inch image at 300 dpi !

  18. Eshaan says

    How do you make an image smaller than its original size without losing quality?
    And I mean really small. In pixel units „10×10”
    The answer to this question will mean a lot to me!
    If possible please email me the answer at
    Thank you! :)

    • Tom says

      @Eshaan
      The thing is, when reducing an image’s size, you have to lose pixels. An image of 100×100 pixels contains 10,000 different pixels, whilst an image of 10×10 only contains 100. This means shrinking a 100×100 image to 10×10 requires you drop 9900 pixels. When making an image larger, you are adding pixels, which is physically possible, unlike in shrinking

  19. john jr. says

    Hi I am trying to upload files to you but it is saying that the file size is too small.
    How can I fix this so I can forward the pics I like.

    • joycebartley says

      hi i am trying to download some pictures from my computer to a contest and they have to be smaller than 4mg unfortunately most of my pictures are a little above that …so how can i reduce the size of mg lower than 4?????? i hope there is an easy way to do it…..from now on should i take the picture with my cell ph up closer or farther away?????

  20. Dan says

    Whilst this offers some useful techniques, and some expensive ones. I personally don’t think that you should EVER size up an image. EVER!! I have worked in Print for years as well as web and this is just a big no no, or that’s how I was taught.

    Size down, never up. This is one technique I will NEVER be taking on board. But thanks for the post.

      • Joe Turner says

        Dave, that’s really not very helpful. Obviously, I would think everyone understands they should retake it, if they could. People wouldn’t need to try to look at finding the „best” of all the imperfect ways of resizing if they could just retake a photo. But most of these photos are of events or at times and/or places that can’t be revisited and going back in time is not really an option, so retaking it is usually quite impossible. I think you should realize that most people looking to upsize didn’t think they were going to need to print the photo as large as they are now looking to go, but want the best results given the circumstances they find themselves in.

        • Mawande says

          Thanks Joe

          I was also shaking my head before your comment. Obviously people would rather do things right the first time, but circumstances and situation can change involuntarily and all people can do is make the best of those situations by coming up with work arounds.

  21. Peggy Woods says

    I must really spend some time learning how to operate the Photoshop I purchased some time ago. I generally just resize photos by using Picasa3 for cropping and such. Going to g+ this information. Thanks!

  22. Nora says

    I have only ever used Photshop to re-size images. But only to a certain extent. When you start with a low-rez image it can only be sized up to a certain extent. Open the file in Photshop, click on „image size, un-check „Resample image”, then start adjusting the pixel size under width until you reach as close to 300dpi as possible. You will see the resolution # change as you mess with the pixel size. Once you have gotten to about 300dpi click „save”. The go back and re-check „Resample image”. Click „save” again. Done.

  23. Mark Narusson says

    Nice article thanks for sharing. You could also consider using Photoshop, make the image a smart object, enlarge the canvas then scale the image to fit. This isn’t perfect but it has got me out a fix on a few occasions.

  24. Jim Massman says

    A note for anyone who’s interested in editing pictures: Image formats generally used on the Web are based upon compression algorithms and you can get into trouble easily when editing those formats unless you edit a „lossless” copy. This is an old trick I’ve used for years after seeing some horrible results… simply save the first file in a non-compression file format such as „.tif”; edit that file to your hearts content, then „File Save As” in the .jpg or .png format.

    Remember that every time you open, edit, then save a .jpg or .png file, whatever compression settings your graphics editing program has been set to will „recompress” that file. Most programs allow you to determine the compression rate, so it doesn’t hurt to set the default value to the least „loss” setting. The days of 'needing’ to smash file sizes down for fast page loads are pretty much gone… but you may not know what the program defaults have been set to.

    $0.02
    Jim

    • _.- M -._ says

      „The days of ‘needing’ to smash file sizes down for fast page loads are pretty much gone…”

      That would depend upon your definition of 'need’, as well as some rudimentary understanding of your target audience.

      Is your target audience composed entirely of urban dwellers with access to fast broadband, who only visit your site while at home? Then, *maybe* that’s true.

      If, on the other hand, you’re interested in reaching any rural audience at all, then you need to keep in mind that *25%* of the population of the rural US can’t get broad band access, and that 6% of the overall US population doesn’t have broadband access.

      If you still say, „Oh, I don’t care about those 16 million potential visitors”, then stop and look at it from the perspective of the mobile web. Does your visitor-base have smart phones? Do you want to support a mobile experience? (A little clue here, your answer should be 'yes’.) Then guess again. You DO still 'need’ to do image optimization to minimize the bandwidth requirements for your site.

      If you’re a real professional in the business of providing content to users, then *YES* you need to care about the actual user experience for folks visiting your site. And, part of that *IS* still site optimization for speed.

  25. Richard says

    Guys, there is no way you can enlarge or shrink a pixel. Pixel size is relative. You can only add or subtract pixels.

  26. Akash KB says

    Very nice and useful tips for resizing images. Specially the 'Perfect Resize’ Plugin for Photoshop. Resizing of images is a very common day to day activity of bloggers while adding photos to blog posts :)

  27. Melissa Klotz says

    I love this site and a lot of your posts have been very helpful. But I’m really scratching my head on this one. Maybe it’s my eyes, maybe my monitor, but I’m seeing very little difference between the „normal resize” and the other resizes. There are plenty of other resampling options in Photoshop. I don’t understand why you would buy a $150 photoshop plugin (extremely expensive for a plugin) or download free software to do something Photoshop is inherently capable of.

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.