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 7047439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:46:18+00:00 2026-05-28T02:46:18+00:00

I am currently re-writing an existing tool in PHP that another person started for

  • 0

I am currently re-writing an existing tool in PHP that another person started for optimizing images, for gif images,I will convert to png and then optimize the png file. For animated gifs I will run through the program called Gifsicle which can optimize animated gif images.

In some of the existing codebase, the other guy identified animated gif images with the file extension gifgif as you can see in the snippets below, they contain all the code that references this gifgif.

I have search Google and I cannot find a mention of a gifgif file anywhere, in addition I have never in my life heard of one.

Can someone help me figure out does the actual extension gifgif exist? Is it possibly something that is embedded in animated gif files?

The code…

$types = array("gif", "png", "gifgif", "jpg", "jpeg", "bmp");

and

if (substr($type, 0, 6) === "gifgif") 
{
    $type = "gifgif";
}

and

case "gifgif":
    $dest_file .= ".gif";
    $cmd = "/usr/bin/gifsicle -O2 $src_file > $dest_file";
    exec($cmd, $return, $error);
  • 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-28T02:46:18+00:00Added an answer on May 28, 2026 at 2:46 am

    This is not a standard extension and the code you show appears to care only about file extensions.

    Presumably the developer of the system you are using came up with the convention and it is unique to that system.

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

Sidebar

Related Questions

I'm currently writing a PHP script that 3rd party clients will be able to
I'm currently writing a tool to plug into an existing enterprise application that uses
I'm re-writing an app that is a data-entry tool. The existing app is in
I'm writing a script that will send user details to a PHP script via
I'm currently writing a C# webservice that has to match an existing wsdl, and
I am currently writing a program using Weka that builds a model (using one
I'm currently writing a simple app that performs a series of requests to the
I'm currently writing a function what would create a zip file, which will be
I am currently writing a simple IOS app that saves tasks into a table.
I'm currently writing a Powershell script that's used to select a user from Active

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.