Created
August 3, 2015 02:50
-
-
Save damienwebdev/b54ad35cd605e48abe82 to your computer and use it in GitHub Desktop.
Testing Image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function nameChange($img){ | |
$img = 'user1-128x128.jpg'; | |
$file = basename($img); | |
$fileDir = '../resources/secure/'; | |
if (file_exists($fileDir . $file)){ | |
$file = $fileDir . $file; | |
$image = imagecreatefromjpeg ( $file ); | |
header('Content-Type: image/jpeg'); | |
imagejpeg($image); | |
// Free up memory | |
imagedestroy($image); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
�����JFIF���HH��>CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality ��C���������� � � ��������������� $.' ",#��(7),01444�'9=82<.342��C� �� �2!�!22222222222222222222222222222222222222222222222222��������"������������������������� �����������������}�������!1A��Qa�"q�2����#B���R��$3br� �����%&'()_456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz����������������������������������������������������������������������������������������������� ������������������w������!1��AQ�aq�"2���B���� #3R��br� �$4�%�����&'()_56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������������?�P)�P�8 p��Q�v(ǥ.(�� (�<�����������}.)��"�F��d2�A��qKӨ��Rb�I@ "���)1@��L"�"�E ��)� v)i(���n.
��y�fHaA�w
��Ӧu����"��\�P�$��Z���~)ּE�Γ�SMc��D��j@8�(�'ߐ�ZM�M��o�|[ѭ-g�K�Io�ڒ�ID'���q��^3�kz��u���F��T��������T��N�?����������9�"�I�jP��]&��AA� �t�:�����lN���GW���v�ys�i G��*T�q����������5���Ke�j�SZKq�w�������n\���:�*�Dԭ��ť\��2�����i�==3��X��Қ��4�DV��~A.�Cq��>��G�>�Ҋ����/�ĺ}�W�M%�R�(�'ad�t�x��נ�Z���R�S�1L"�i�P� p�Q�O�:�@is@�\�.����Q"��8�C����W������X���w�++m�H$�:�z��O�ko�����sw! ���I'��?:L�_Ӭ��#�� �(�U� x ������@�C�춋�B;]̩.�p���H�� ~"���^���I���-�T-��{���+�) ���3L��њi��
2��Ehf��3�������j�v���e���SQ@�����������f���M"�8$~4���/�P3u�G��֩� ��4����2@;�Mt00 ��szFZ2�I��@em���=@!����4�� �JW�E��tQ���]��$�����"����,�bHl1�8#��(��!�0_�<��'��ҤϽs6�*]N=B=>՚��A����npX�������?�vY�7��-�8���uff�d��@��z��(�� � �L��q������G�rs����<� 8+ *����y�L��:�_�YY�k���<�YD��@y$�G84������ސ:��
A�Gzù�h-���D��L1��08�=Fp1Ut[��i����� �������8���8���x#��:��L����]Ơ�@e2*��g8�h�I��9��� 'Qk�˘���8��b�V<`c������4����nS������o�C��,qj%�ݸ8�Y��q����]�r�"�@�f�%-�5��e#���\d�¢s��<�M���