Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4532938
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:05:34+00:00 2026-05-21T14:05:34+00:00

I have a folder with about 2000 images size 37×13, when i add a

  • 0

I have a folder with about 2000 images size 37×13, when i add a new image i want to look for a pixel perfect match before i add it to the folder.

What i need is a match function, returning true of false, so i can react if there’s a match. I imagine it can be done with imagick, but do not have that installed, and would like to be able to do this without installing imagick.

So what i ask is, is there a way to see if an image matches another perfectly with PHP/GD?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:05:34+00:00Added an answer on May 21, 2026 at 2:05 pm

    I haven’t tried this myself, but I would assume that using hash_file would work for what you’re trying to do.

    Hash both files using hash_file and compare them. If they match, then the images should be the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one folder with about 1000 files and I want to group them
I have about 1500 images within a folder named 3410001ne => 3809962sw. I need
We have a images folder which has about a million images in it. We
I have a folder with approx 10000 images, and I need to copy about
For example. I have folder MyFolder And I want to get the size of
I have a folder of media files that are about 1TB big. I want
I have created a new folder in my project, aptly named 'images'. I have
I have about 2000 subfolders in one folder, in each of these folders there
I have a Folder with about 1000 Projects . So to open one, it's
Do I have to put every file in a different folder? like: about-us/about-us.php profile/profile.php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.