Fifiasco

Fifiasco

Member Since 2 Years Ago

Experience Points
320
Total
Experience

4,680 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
320 XP
Oct
18
1 month ago
Activity icon

Started a new Conversation Resizing Images With Intervention / Imagick

Hello all, I am just looking for some advice on resizing images using intervention/imagick. My case is unique but not obscure. I have a system that builds labels from parameters. These parameters include images, text and lines. The entirety of which is created using Intervention. I have no trouble with intervention, I have used it for a while however I am now running into a road bump. These labels I am creating should be W 184px x H 269px, so they are relatively small. If I create them at this size they are extremely pixelated and can not be used for print. If I create them 4x the size, they look perfect, crisp, clean exactly how I want them to look. This dramatic change is down to nothing but changing the dimensions. Just to be clear when I say the smaller image is pixelated I am viewing at the size I create it , I am not zooming right in and expecting it to look clean. It is pixelated at it's exported size.

The work around I had in mind was to create the image 4* the size then save it. Take that saved image and then resize it /4. The result however is the exact same, pixelated and not useable. If I take the large image, the one that is 4* larger and resize it in illustrator the quality is great, exactly how I would expect it to be. I am unsure why so much quality is being lossed a) when the label (image) is created at its intended size b) when I resize the large image. As I said before I am using Intervention with Imagick as the driver, I am now trying to use Imagick on its own, which I am again fairly comfortable with but I am still getting the same issue. I feel I have exhausted all options with this, Please see the current code block I am using to resize it with Imagick.

    $img = new \Imagick($path);

        $img->resizeImage($width/4,$height/4,\Imagick::FILTER_LANCZOS,1);
        $img->writeImage($pathFinal);

        $img->destroy();